Skip to content

Commit 08c46b5

Browse files
committed
Replace 'x' image with unicode text and fix font scaling
Following a fix of the font scaling the font used to signal that a file had not been loaded was too large. The /img/x.png was also not part of the library and relied on the client app to have it. It's not easy to build an image into a library so opted to use a unicode character insteaad which yields the same effect.
1 parent 7eb1b42 commit 08c46b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ui/widgets/DynamicPage/dynamicPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const DynamicPageComponent = (
5151
width: "100%",
5252
border: "1px solid black",
5353
minHeight: "100px",
54+
fontSize: "0.625rem",
5455
...style
5556
}}
5657
>
@@ -82,7 +83,8 @@ export const DynamicPageComponent = (
8283
<ActionButton
8384
position={new RelativePosition("25px", "25px")}
8485
backgroundColor={new Color("var(--light-background)")}
85-
foregroundColor={new Color("#ffffff")}
86+
foregroundColor={new Color("#000000")}
87+
text={"\u2715"}
8688
actions={{
8789
executeAsOne: false,
8890
actions: [
@@ -97,7 +99,6 @@ export const DynamicPageComponent = (
9799
}
98100
]
99101
}}
100-
image="/img/x.png"
101102
/>
102103
</div>
103104
</div>

0 commit comments

Comments
 (0)