Skip to content

Commit

Permalink
tweak: adjust alignment of quo/author component for different text sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom committed Apr 1, 2024
1 parent bb931a8 commit 3c5925e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/quo/components/messages/author/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@

(defn secondary-name
[theme]
{:padding-top 1
:flex-shrink 999999
{:flex-shrink 999999
:color (colors/theme-colors colors/neutral-50 colors/neutral-40 theme)})

(defn icon-container
[is-first?]
{:margin-left (if is-first? 4 2)
:margin-bottom 4})
:margin-bottom 2})

(defn time-text
[theme]
Expand Down
6 changes: 5 additions & 1 deletion src/quo/components/messages/author/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
[{:keys [primary-name secondary-name style short-chat-key time-str contact? verified? untrustworthy?
muted? size theme]
:or {size 13}}]
[rn/view {:style (merge style/container style {:height (if (= size 15) 21.75 18.2)})}
[rn/view
{:style (merge style/container
style
{:height (if (= size 15) 21.75 18.2)
:padding-bottom (if (= size 15) 2 0.5)})}
[rn/view {:style style/name-container}
[text/text
{:weight :semi-bold
Expand Down

0 comments on commit 3c5925e

Please sign in to comment.