aboutsummaryrefslogtreecommitdiff
path: root/src/utils/comments.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-11 17:44:24 -0400
committerIvan Chen <ivan@tagg.id>2021-06-11 17:44:24 -0400
commit22a58b2ad08297b6d5dd3dd241ae23a756ae7552 (patch)
tree94b459cb819600a014076f73f1d118616b27bd5e /src/utils/comments.tsx
parentbcfbaf00f60b65ab5f8c38ff8766644a2496bed1 (diff)
Adjust mention text padding
Diffstat (limited to 'src/utils/comments.tsx')
-rw-r--r--src/utils/comments.tsx22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/utils/comments.tsx b/src/utils/comments.tsx
index 161ede0b..910b44e7 100644
--- a/src/utils/comments.tsx
+++ b/src/utils/comments.tsx
@@ -79,9 +79,9 @@ export const renderTextWithMentions: React.FC<RenderProps> = ({
);
};
-export const mentionPartTypes: (
- theme: 'blue' | 'momentCaption' | 'commentPreview',
-) => PartType[] = (theme) => {
+export const mentionPartTypes: (theme: 'blue' | 'white') => PartType[] = (
+ theme,
+) => {
return [
{
trigger: '@',
@@ -93,27 +93,21 @@ export const mentionPartTypes: (
];
};
-const _textStyle: (
- theme: 'blue' | 'momentCaption' | 'commentPreview',
-) => StyleProp<TextStyle> = (theme) => {
+const _textStyle: (theme: 'blue' | 'white') => StyleProp<TextStyle> = (
+ theme,
+) => {
switch (theme) {
case 'blue':
return {
color: TAGG_LIGHT_BLUE,
top: normalize(3),
};
- case 'commentPreview':
- return {
- color: 'white',
- fontWeight: '800',
- top: normalize(3),
- };
- case 'momentCaption':
+ case 'white':
default:
return {
color: 'white',
fontWeight: '800',
- top: normalize(4.5),
+ top: normalize(3),
};
}
};