diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-06-06 13:08:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-06 03:08:30 -0700 |
commit | 442de4ab7ae210fb0fa857e2d5783207288bbe99 (patch) | |
tree | af00c726b14f0e7ff23f4617ea18507ce3cf83ba | |
parent | 8f3f896a4af13d08a0869fd11b068f56c5ee57d6 (diff) | |
download | voidsky-442de4ab7ae210fb0fa857e2d5783207288bbe99.tar.zst |
change fontSize: 15 to a.text_sm (#7896)
-rw-r--r-- | src/components/PostControls/PostControlButton.tsx | 7 | ||||
-rw-r--r-- | src/lib/custom-animations/CountWheel.tsx | 4 | ||||
-rw-r--r-- | src/lib/custom-animations/CountWheel.web.tsx | 4 |
3 files changed, 5 insertions, 10 deletions
diff --git a/src/components/PostControls/PostControlButton.tsx b/src/components/PostControls/PostControlButton.tsx index 1585d429d..f41f95049 100644 --- a/src/components/PostControls/PostControlButton.tsx +++ b/src/components/PostControls/PostControlButton.tsx @@ -114,12 +114,7 @@ export function PostControlButtonText({style, ...props}: TextProps) { return ( <Text - style={[ - color, - big ? a.text_md : {fontSize: 15}, - active && a.font_bold, - style, - ]} + style={[color, big ? a.text_md : a.text_sm, active && a.font_bold, style]} {...props} /> ) diff --git a/src/lib/custom-animations/CountWheel.tsx b/src/lib/custom-animations/CountWheel.tsx index b448ad227..4b131db2d 100644 --- a/src/lib/custom-animations/CountWheel.tsx +++ b/src/lib/custom-animations/CountWheel.tsx @@ -144,7 +144,7 @@ export function CountWheel({ <Text testID="likeCount" style={[ - big ? a.text_md : {fontSize: 15}, + big ? a.text_md : a.text_sm, a.user_select_none, isLiked ? [a.font_bold, s.likeColor] @@ -162,7 +162,7 @@ export function CountWheel({ aria-disabled={true}> <Text style={[ - big ? a.text_md : {fontSize: 15}, + big ? a.text_md : a.text_sm, a.user_select_none, isLiked ? [a.font_bold, s.likeColor] diff --git a/src/lib/custom-animations/CountWheel.web.tsx b/src/lib/custom-animations/CountWheel.web.tsx index d5ad618b1..fc2505ead 100644 --- a/src/lib/custom-animations/CountWheel.web.tsx +++ b/src/lib/custom-animations/CountWheel.web.tsx @@ -90,7 +90,7 @@ export function CountWheel({ <Text testID="likeCount" style={[ - big ? a.text_md : {fontSize: 15}, + big ? a.text_md : a.text_sm, a.user_select_none, isLiked ? [a.font_bold, s.likeColor] @@ -107,7 +107,7 @@ export function CountWheel({ ref={prevCountView}> <Text style={[ - big ? a.text_md : {fontSize: 15}, + big ? a.text_md : a.text_sm, a.user_select_none, isLiked ? [a.font_bold, s.likeColor] |