瀏覽代碼

feat(base/ui/native): centered button label

factor2
Calin-Teodor 3 年之前
父節點
當前提交
179647c93c
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      react/features/base/ui/components/native/buttonStyles.ts

+ 3
- 2
react/features/base/ui/components/native/buttonStyles.ts 查看文件

@@ -4,12 +4,13 @@ const BUTTON_HEIGHT = BaseTheme.spacing[7];
4 4
 
5 5
 const button = {
6 6
     borderRadius: BaseTheme.shape.borderRadius,
7
-    height: BUTTON_HEIGHT
7
+    display: 'flex',
8
+    height: BUTTON_HEIGHT,
9
+    justifyContent: 'center'
8 10
 };
9 11
 
10 12
 const buttonLabel = {
11 13
     ...BaseTheme.typography.bodyShortBold,
12
-    padding: 6,
13 14
     textTransform: 'capitalize'
14 15
 };
15 16
 

Loading…
取消
儲存