Преглед изворни кода

Bugfix: Button title text align problems fixed.

lfabl пре 1 месец
родитељ
комит
b94f68ef04
2 измењених фајлова са 4 додато и 2 уклоњено
  1. 2 1
      src/components/button/stylesheet.ts
  2. 2 1
      src/components/highlightButton/stylesheet.ts

+ 2 - 1
src/components/button/stylesheet.ts

@@ -155,7 +155,8 @@ const stylesheet = StyleSheet.create({
         display: "flex"
     },
     title: {
-        margin: "0",
+        textAlign: "center",
+        margin: "0"
     },
     loading: {},
     overlay: {

+ 2 - 1
src/components/highlightButton/stylesheet.ts

@@ -123,7 +123,8 @@ const stylesheet = StyleSheet.create({
         display: "flex"
     },
     title: {
-        margin: "0",
+        textAlign: "center",
+        margin: "0"
     },
     loading: {},
     overlay: {