Skip to content

Commit cf708cf

Browse files
committed
fix row styles for icon always to have space
1 parent ce3d539 commit cf708cf

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

codex-ui/src/vue/components/row/Row.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ defineProps<{
102102
}
103103
104104
&__center {
105+
height: 20px;
105106
flex: 1;
106107
display: flex;
107108
flex-direction: column;

src/presentation/pages/Settings.vue

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,10 @@
5858
<DarkColorShemeIcon v-if="scheme === 'Dark'" />
5959
</template>
6060
<template
61+
v-if="colorScheme === scheme.toLowerCase()"
6162
#right
6263
>
63-
<Icon
64-
name="Check"
65-
:style="colorScheme === scheme.toLowerCase() ? 'opacity: 1;' : 'opacity: 0;'"
66-
/>
64+
<Icon name="Check" />
6765
</template>
6866
</Row>
6967
</Section>
@@ -84,12 +82,10 @@
8482
<ThemePreview :theme="theme" />
8583
</template>
8684
<template
85+
v-if="themeBase === theme.toLowerCase()"
8786
#right
8887
>
89-
<Icon
90-
name="Check"
91-
:style="themeBase === theme.toLowerCase() ? 'opacity: 1;' : 'opacity: 0;'"
92-
/>
88+
<Icon name="Check" />
9389
</template>
9490
</Row>
9591
</Section>
@@ -110,12 +106,10 @@
110106
<ThemePreview :theme="theme" />
111107
</template>
112108
<template
109+
v-if="themeAccent === theme.toLowerCase()"
113110
#right
114111
>
115-
<Icon
116-
name="Check"
117-
:style="themeAccent === theme.toLowerCase() ? 'opacity: 1;' : 'opacity: 0;'"
118-
/>
112+
<Icon name="Check" />
119113
</template>
120114
</Row>
121115
</Section>

0 commit comments

Comments
 (0)