@@ -787,7 +787,6 @@ export default function CoreConfigModal({ isDialogOpen, onOpenChange, form, edit
787787 < DialogContent className = "h-full max-w-full px-2 py-6 sm:h-auto sm:max-w-2xl" >
788788 < DialogHeader >
789789 < DialogTitle className = "flex items-center gap-2 text-base sm:text-lg" >
790- < Shield className = "h-4 w-4 sm:h-5 sm:w-5 text-primary shrink-0" />
791790 < span className = "truncate" > { t ( 'coreConfigModal.vlessAdvancedSettings' , { defaultValue : 'VLESS Advanced Settings' } ) } </ span >
792791 </ DialogTitle >
793792 </ DialogHeader >
@@ -1288,8 +1287,9 @@ export default function CoreConfigModal({ isDialogOpen, onOpenChange, form, edit
12881287
12891288 { /* Fullscreen Mode */ }
12901289 { isEditorFullscreen ? (
1291- < div className = "relative z-10 w-full max-w-[95vw] h-auto rounded-lg border shadow-xl bg-background flex flex-col my-4 sm:my-8" >
1292- < div className = "flex items-center justify-between border-b bg-background px-3 py-2.5 rounded-t-lg" >
1290+ < div className = "relative z-10 w-full h-full sm:w-full sm:max-w-[95vw] sm:h-auto sm:rounded-lg sm:border sm:shadow-xl bg-background flex flex-col sm:my-8" >
1291+ { /* Header - hidden on mobile, visible on desktop */ }
1292+ < div className = "hidden sm:flex items-center justify-between border-b bg-background px-3 py-2.5 rounded-t-lg" >
12931293 < div className = "flex items-center gap-2" >
12941294 < span className = "text-sm font-medium" > Xray Core Configuration</ span >
12951295 </ div >
@@ -1304,7 +1304,18 @@ export default function CoreConfigModal({ isDialogOpen, onOpenChange, form, edit
13041304 < Minimize2 className = "h-4 w-4" />
13051305 </ Button >
13061306 </ div >
1307- < div className = "relative h-[calc(100vh-80px)] sm:h-[calc(100vh-160px)]" style = { { width : '100%' } } >
1307+ { /* Floating minimize button for mobile */ }
1308+ < Button
1309+ type = "button"
1310+ size = "icon"
1311+ variant = "default"
1312+ className = "absolute top-2 right-2 z-20 sm:hidden h-9 w-9 rounded-full shadow-lg"
1313+ onClick = { handleToggleFullscreen }
1314+ aria-label = { t ( 'exitFullscreen' ) }
1315+ >
1316+ < Minimize2 className = "h-4 w-4" />
1317+ </ Button >
1318+ < div className = "relative h-full sm:h-[calc(100vh-160px)]" style = { { width : '100%' } } >
13081319 < Editor
13091320 height = "100%"
13101321 defaultLanguage = "json"
0 commit comments