Add mobileFullscreen to settings dialogs and fix button layout (#163)

* Add mobileFullscreen to settings dialogs and fix button layout

* Improve responsive layout in settings UI components

* Fix null safety in SessionDetail
This commit is contained in:
Chris Scott authored and GitHub committed 2026-03-21 12:10:39 -04:00
1 parent 2e634b5362
commit cbd0ee2958
8 files changed
+26 -23

No files matched your search

@@ -104,7 +104,7 @@ export function CreateConfigDialog({ isOpen, onOpenChange, onCreate, isUpdating
return (
<Dialog open={isOpen} onOpenChange={onOpenChange}>
<DialogContent className="max-w-2xl max-h-[90vh] sm:max-h-[85vh] flex flex-col">
<DialogContent mobileFullscreen className="sm:max-w-2xl sm:max-h-[85vh] flex flex-col">
<DialogHeader className="flex-shrink-0">
<DialogTitle>Create OpenCode Config</DialogTitle>
</DialogHeader>
@@ -160,14 +160,15 @@ export function CreateConfigDialog({ isOpen, onOpenChange, onCreate, isUpdating
</div>
</div>
<div className="flex justify-end gap-2 flex-shrink-0 pt-4 border-t">
<Button variant="outline" onClick={() => onOpenChange(false)}>
<div className="flex flex-row sm:flex-row justify-end gap-2 flex-shrink-0 pt-4 border-t">
<Button variant="outline" onClick={() => onOpenChange(false)} className="flex-1 sm:flex-none">
Cancel
</Button>
<Button
type="button"
onClick={(e) => handleSubmit(e)}
disabled={isUpdating || !name.trim() || !content.trim()}
className="flex-1 sm:flex-none"
>
{isUpdating && <Loader2 className="h-4 w-4 mr-2 animate-spin" />}
Create