mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
fix(schedules): let drawer content scroll under the safe area and add tab bar spacing
This commit is contained in:
1 parent
6a5f8926c1
commit
9ae48d8a98
3 files changed
+6
-6
No files matched your search
@@ -116,7 +116,7 @@ export function RunDetailPanel({ repoId, activeRun, selectedRunLoading, onCancel
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<TabsContent value="log" className="mt-0 min-h-0 flex-1 overflow-y-auto px-3 py-3 xl:[mask-image:linear-gradient(to_bottom,transparent,black_16px,black)]">
|
||||
<TabsContent value="log" className="mt-0 min-h-0 flex-1 overflow-y-auto px-3 pt-3 pb-[calc(env(safe-area-inset-bottom)+0.75rem)] xl:[mask-image:linear-gradient(to_bottom,transparent,black_16px,black)]">
|
||||
{selectedRunLoading && !activeRun ? (
|
||||
<div className="flex items-center justify-center p-4"><Loader2 className="h-6 w-6 animate-spin text-muted-foreground" /></div>
|
||||
) : (
|
||||
@@ -137,7 +137,7 @@ export function RunDetailPanel({ repoId, activeRun, selectedRunLoading, onCancel
|
||||
<Button variant="outline" size="sm" onClick={() => { void refetchRepo() }}>Retry</Button>
|
||||
</div>
|
||||
)}
|
||||
<div className="min-h-0 flex-1 overflow-y-auto px-3 py-2 xl:[mask-image:linear-gradient(to_bottom,transparent,black_16px,black)]">
|
||||
<div className="min-h-0 flex-1 overflow-y-auto px-3 pt-2 pb-[calc(env(safe-area-inset-bottom)+0.75rem)] xl:[mask-image:linear-gradient(to_bottom,transparent,black_16px,black)]">
|
||||
<ScheduleRunMarkdown content={activeRun.responseText} onOpenLocalPath={handleOpenLocalPath} />
|
||||
</div>
|
||||
</>
|
||||
@@ -145,7 +145,7 @@ export function RunDetailPanel({ repoId, activeRun, selectedRunLoading, onCancel
|
||||
<div className="p-3"><pre className="whitespace-pre-wrap break-words text-sm font-mono leading-6">No assistant output captured.</pre></div>
|
||||
)}
|
||||
</TabsContent>
|
||||
<TabsContent value="error" className="mt-0 min-h-0 flex-1 overflow-y-auto px-3 py-3 xl:[mask-image:linear-gradient(to_bottom,transparent,black_16px,black)]">
|
||||
<TabsContent value="error" className="mt-0 min-h-0 flex-1 overflow-y-auto px-3 pt-3 pb-[calc(env(safe-area-inset-bottom)+0.75rem)] xl:[mask-image:linear-gradient(to_bottom,transparent,black_16px,black)]">
|
||||
{selectedRunLoading && !activeRun ? (
|
||||
<div className="flex items-center justify-center p-4"><Loader2 className="h-6 w-6 animate-spin text-muted-foreground" /></div>
|
||||
) : (
|
||||
|
||||
@@ -69,7 +69,7 @@ export function SideDrawer({
|
||||
/>
|
||||
<div
|
||||
className={cn(
|
||||
'fixed top-0 bottom-0 bg-background border-l border-border pt-safe pb-safe flex flex-col z-50',
|
||||
'fixed top-0 bottom-0 bg-background border-l border-border pt-safe flex flex-col z-50',
|
||||
side === 'right' ? 'right-0' : 'left-0',
|
||||
widthClass,
|
||||
className,
|
||||
@@ -118,7 +118,7 @@ export interface SideDrawerContentProps {
|
||||
|
||||
export function SideDrawerContent({ className, children }: SideDrawerContentProps) {
|
||||
return (
|
||||
<div className={cn('flex-1 overflow-auto min-h-0 px-4 py-3', className)}>
|
||||
<div className={cn('flex-1 overflow-auto min-h-0 px-4 pt-3 pb-[calc(env(safe-area-inset-bottom)+0.75rem)]', className)}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -354,7 +354,7 @@ body {
|
||||
}
|
||||
|
||||
@utility pb-mobile-tabbar {
|
||||
padding-bottom: calc(env(safe-area-inset-bottom) + 5rem);
|
||||
padding-bottom: calc(env(safe-area-inset-bottom) + 4.25rem);
|
||||
}
|
||||
|
||||
/* Prevent iOS zoom on all input elements */
|
||||
|
||||
Reference in new issue
Block a user