@@ -126,12 +126,12 @@ export const SystemSettings = () => {
126
126
</ h2 >
127
127
< div className = "border border-b border-gray-200 dark:border-gray-600 mt-3" > </ div >
128
128
</ div >
129
- < div className = "flex flex-row mb-3 justify-between items-center" >
129
+ < div className = "flex flex-col sm:flex- row mb-3 gap-3 sm:gap-0 sm: justify-between sm: items-center" >
130
130
< span className = "text-black dark:text-white font-medium" >
131
131
< BetaTag />
132
132
{ t ( "generalSettings.system.fontSize.label" ) }
133
133
</ span >
134
- < div className = "flex flex-row items-center gap-3" >
134
+ < div className = "flex flex-row items-center gap-3 justify-center sm:justify-end " >
135
135
< button
136
136
onClick = { decrease }
137
137
className = "bg-black hover:bg-gray-800 dark:bg-white dark:hover:bg-gray-200 text-white dark:text-black px-3 py-1.5 rounded-lg transition-colors duration-200 font-medium text-sm" >
@@ -148,8 +148,8 @@ export const SystemSettings = () => {
148
148
</ div >
149
149
</ div >
150
150
151
- < div className = "flex flex-row mb-3 justify-between" >
152
- < span className = "text-gray-700 dark:text-neutral-50 " >
151
+ < div className = "flex flex-col sm:flex- row mb-3 gap-3 sm:gap-0 sm: justify-between sm:items-center " >
152
+ < span className = "text-gray-700 dark:text-neutral-50" >
153
153
< BetaTag />
154
154
{ t ( "generalSettings.system.actionIcon.label" ) }
155
155
</ span >
@@ -165,14 +165,14 @@ export const SystemSettings = () => {
165
165
}
166
166
] }
167
167
value = { actionIconClick }
168
- className = "w-full mt-4 sm:mt-0 sm:w-[200px]"
168
+ className = "w-full sm:w-[200px]"
169
169
onChange = { ( value ) => {
170
170
setActionIconClick ( value )
171
171
} }
172
172
/>
173
173
</ div >
174
- < div className = "flex flex-row mb-3 justify-between" >
175
- < span className = "text-gray-700 dark:text-neutral-50 " >
174
+ < div className = "flex flex-col sm:flex- row mb-3 gap-3 sm:gap-0 sm: justify-between sm:items-center " >
175
+ < span className = "text-gray-700 dark:text-neutral-50" >
176
176
< BetaTag />
177
177
{ t ( "generalSettings.system.contextMenu.label" ) }
178
178
</ span >
@@ -188,15 +188,15 @@ export const SystemSettings = () => {
188
188
}
189
189
] }
190
190
value = { contextMenuClick }
191
- className = "w-full mt-4 sm:mt-0 sm:w-[200px]"
191
+ className = "w-full sm:w-[200px]"
192
192
onChange = { ( value ) => {
193
193
setContextMenuClick ( value )
194
194
} }
195
195
/>
196
196
</ div >
197
197
{ isFireFox && ! isFireFoxPrivateMode && (
198
- < div className = "flex flex-row mb-3 justify-between" >
199
- < span className = "text-gray-700 dark:text-neutral-50 " >
198
+ < div className = "flex flex-col sm:flex- row mb-3 gap-3 sm:gap-0 sm: justify-between sm:items-center " >
199
+ < span className = "text-gray-700 dark:text-neutral-50" >
200
200
< BetaTag />
201
201
{ t ( "generalSettings.system.firefoxPrivateModeSync.label" , {
202
202
defaultValue :
@@ -208,7 +208,7 @@ export const SystemSettings = () => {
208
208
syncFirefoxData . mutate ( )
209
209
} }
210
210
disabled = { syncFirefoxData . isPending }
211
- className = "bg-gray-800 dark:bg-white text-white dark:text-gray-900 px-4 py-2 rounded-md cursor-pointer" >
211
+ className = "bg-gray-800 dark:bg-white text-white dark:text-gray-900 px-4 py-2 rounded-md cursor-pointer w-full sm:w-auto " >
212
212
{ syncFirefoxData . isPending ? (
213
213
< Loader2 className = "mr-2 h-4 w-4 animate-spin" />
214
214
) : (
@@ -219,30 +219,32 @@ export const SystemSettings = () => {
219
219
</ button >
220
220
</ div >
221
221
) }
222
- < div className = "flex flex-row mb-3 justify-between" >
223
- < span className = "text-gray-700 dark:text-neutral-50 " >
222
+ < div className = "flex flex-col sm:flex- row mb-3 gap-3 sm:gap-0 sm: justify-between sm:items-center " >
223
+ < span className = "text-gray-700 dark:text-neutral-50" >
224
224
{ t ( "generalSettings.system.webuiBtnSidePanel.label" ) }
225
225
</ span >
226
- < Switch
226
+ < div >
227
+ < Switch
227
228
checked = { webuiBtnSidePanel }
228
229
onChange = { ( checked ) => {
229
230
setWebuiBtnSidePanel ( checked )
230
231
} }
231
232
/>
233
+ </ div >
232
234
</ div >
233
235
234
- < div className = "flex flex-row mb-3 justify-between" >
235
- < span className = "text-gray-700 dark:text-neutral-50 " >
236
+ < div className = "flex flex-col sm:flex- row mb-3 gap-3 sm:gap-0 sm: justify-between sm:items-center " >
237
+ < span className = "text-gray-700 dark:text-neutral-50" >
236
238
< BetaTag />
237
239
{ t ( "generalSettings.system.chatBackgroundImage.label" ) }
238
240
</ span >
239
- < div className = "flex items-center gap-2" >
241
+ < div className = "flex items-center gap-2 justify-center sm:justify-end " >
240
242
{ chatBackgroundImage ? (
241
243
< button
242
244
onClick = { ( ) => {
243
245
setChatBackgroundImage ( null )
244
246
} }
245
- className = " text-gray-800 dark:text-white" >
247
+ className = "text-gray-800 dark:text-white" >
246
248
< RotateCcw className = "size-4" />
247
249
</ button >
248
250
) : null }
@@ -262,23 +264,23 @@ export const SystemSettings = () => {
262
264
</ div >
263
265
</ div >
264
266
265
- < div className = "flex flex-row mb-3 justify-between" >
266
- < span className = "text-gray-700 dark:text-neutral-50 " >
267
+ < div className = "flex flex-col sm:flex- row mb-3 gap-3 sm:gap-0 sm: justify-between sm:items-center " >
268
+ < span className = "text-gray-700 dark:text-neutral-50" >
267
269
{ t ( "generalSettings.system.export.label" ) }
268
270
</ span >
269
271
< button
270
272
onClick = { exportPageAssistData }
271
- className = "bg-gray-800 dark:bg-white text-white dark:text-gray-900 px-4 py-2 rounded-md cursor-pointer" >
273
+ className = "bg-gray-800 dark:bg-white text-white dark:text-gray-900 px-4 py-2 rounded-md cursor-pointer w-full sm:w-auto " >
272
274
{ t ( "generalSettings.system.export.button" ) }
273
275
</ button >
274
276
</ div >
275
- < div className = "flex flex-row mb-3 justify-between" >
276
- < span className = "text-gray-700 dark:text-neutral-50 " >
277
+ < div className = "flex flex-col sm:flex- row mb-3 gap-3 sm:gap-0 sm: justify-between sm:items-center " >
278
+ < span className = "text-gray-700 dark:text-neutral-50" >
277
279
{ t ( "generalSettings.system.import.label" ) }
278
280
</ span >
279
281
< label
280
282
htmlFor = "import"
281
- className = "bg-gray-800 dark:bg-white text-white dark:text-gray-900 px-4 py-2 rounded-md cursor-pointer flex items-center" >
283
+ className = "bg-gray-800 dark:bg-white text-white dark:text-gray-900 px-4 py-2 rounded-md cursor-pointer flex items-center justify-center w-full sm:w-auto " >
282
284
{ importDataMutation . isPending ? (
283
285
< >
284
286
< Loader2 className = "mr-2 h-4 w-4 animate-spin" />
@@ -301,8 +303,8 @@ export const SystemSettings = () => {
301
303
/>
302
304
</ div >
303
305
304
- < div className = "flex flex-row mb-3 justify-between" >
305
- < span className = "text-gray-700 dark:text-neutral-50 " >
306
+ < div className = "flex flex-col sm:flex- row mb-3 gap-3 sm:gap-0 sm: justify-between sm:items-center " >
307
+ < span className = "text-gray-700 dark:text-neutral-50" >
306
308
{ t ( "generalSettings.system.deleteChatHistory.label" ) }
307
309
</ span >
308
310
@@ -328,7 +330,7 @@ export const SystemSettings = () => {
328
330
}
329
331
}
330
332
} }
331
- className = "bg-red-500 dark:bg-red-600 text-white dark:text-gray-200 px-4 py-2 rounded-md" >
333
+ className = "bg-red-500 dark:bg-red-600 text-white dark:text-gray-200 px-4 py-2 rounded-md w-full sm:w-auto " >
332
334
{ t ( "generalSettings.system.deleteChatHistory.button" ) }
333
335
</ button >
334
336
</ div >
0 commit comments