-
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: action/reaction drawer UI issue (#19630)
- Loading branch information
Showing
15 changed files
with
289 additions
and
240 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
33 changes: 26 additions & 7 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,12 +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 10 | ||
: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 | ||
(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
Oops, something went wrong.