-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reaction selector style, pixel perfect
Signed-off-by: yqrashawn <namy.19@gmail.com>
- Loading branch information
Showing
2 changed files
with
26 additions
and
9 deletions.
There are no files selected for viewing
33 changes: 25 additions & 8 deletions
33
src/quo/components/selectors/reactions_selector/style.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
(ns quo.components.selectors.reactions-selector.style | ||
(:require | ||
[quo.foundations.colors :as colors])) | ||
[quo.foundations.colors :as colors] | ||
[react-native.platform :as platform])) | ||
|
||
(defn container | ||
[pressed? theme] | ||
{:padding 9 | ||
:border-radius 12 | ||
:border-width 1 | ||
:border-color (colors/theme-colors colors/neutral-20 colors/neutral-80 theme) | ||
:background-color (when pressed? | ||
(colors/theme-colors colors/neutral-10 colors/neutral-80-opa-40 theme))}) | ||
(merge | ||
{:border-radius 12 | ||
:border-width 1 | ||
:border-color (colors/theme-colors colors/neutral-20 colors/neutral-80 theme) | ||
:background-color (when pressed? | ||
(colors/theme-colors colors/neutral-10 colors/neutral-80-opa-40 theme))} | ||
(if platform/ios? | ||
{:padding 9.5 | ||
:padding-horizontal 8} | ||
{:padding 8}))) | ||
|
||
(def emoji-text-style {:line-height 20}) | ||
(def emoji-text-style | ||
(merge | ||
{:line-height 20 | ||
:text-align :center} | ||
(if platform/ios? | ||
{:line-height 20 | ||
:font-size 17 | ||
:text-align :center} | ||
{:font-size 18 | ||
:height 24 | ||
:width 24 | ||
:text-align :center | ||
:text-align-vertical :center}))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters