Skip to content

Commit 2f8fad5

Browse files
committed
fix: better ui on small phone screens
1 parent f0ef42a commit 2f8fad5

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

components.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ declare module '@vue/runtime-core' {
136136
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
137137
NDivider: typeof import('naive-ui')['NDivider']
138138
NEllipsis: typeof import('naive-ui')['NEllipsis']
139+
NFlex: typeof import('naive-ui')['NFlex']
139140
NFormItem: typeof import('naive-ui')['NFormItem']
140141
NH1: typeof import('naive-ui')['NH1']
141142
NH3: typeof import('naive-ui')['NH3']
@@ -144,6 +145,7 @@ declare module '@vue/runtime-core' {
144145
NLayout: typeof import('naive-ui')['NLayout']
145146
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
146147
NMenu: typeof import('naive-ui')['NMenu']
148+
NSpace: typeof import('naive-ui')['NSpace']
147149
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
148150
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
149151
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']

src/tools/smart-text-replacer/smart-text-replacer.vue

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -146,27 +146,23 @@ const { copy } = useCopy({ source: highlightedText });
146146
</div>
147147
</div>
148148

149-
<div mt-4 w-full flex gap-10px>
150-
<div flex-2 flex items-baseline gap-10px>
151-
<c-button @click="findNext()">
152-
<label>Find Next</label>
153-
</c-button>
154-
<n-checkbox v-model:checked="matchCase">
155-
<label>Match case</label>
156-
</n-checkbox>
157-
<n-checkbox v-model:checked="keepLineBreaks">
158-
<label>Keep linebreaks</label>
159-
</n-checkbox>
160-
</div>
161-
<div flex flex-1 justify-end gap-10px>
162-
<c-button @click="replaceSelected()">
163-
<label>Replace</label>
164-
</c-button>
165-
<c-button @click="replaceAll()">
166-
<label>Replace All</label>
167-
</c-button>
168-
</div>
169-
</div>
149+
<n-space mt-4 gap-1 align="baseline" justify="space-between">
150+
<c-button @click="findNext()">
151+
<label>Find Next</label>
152+
</c-button>
153+
<c-button @click="replaceSelected()">
154+
<label>Replace</label>
155+
</c-button>
156+
<c-button @click="replaceAll()">
157+
<label>Replace All</label>
158+
</c-button>
159+
<n-checkbox v-model:checked="matchCase">
160+
<label>Match case</label>
161+
</n-checkbox>
162+
<n-checkbox v-model:checked="keepLineBreaks">
163+
<label>Keep linebreaks</label>
164+
</n-checkbox>
165+
</n-space>
170166

171167
<n-divider />
172168

0 commit comments

Comments
 (0)