mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
Merge remote-tracking branch 'origin/main' into refactor/ocm-native-opencode
This commit is contained in:
commit
1278915e78
23 files changed
+296
-175
No files matched your search
@@ -95,7 +95,7 @@ describe('DialogContent', () => {
|
||||
</Dialog>,
|
||||
)
|
||||
const content = screen.getByTestId('dialog-content')
|
||||
expect(content).toHaveStyle({ paddingTop: 'env(safe-area-inset-top, 0px)' })
|
||||
expect(content).toHaveStyle({ paddingTop: 'var(--safe-area-top)' })
|
||||
expect(content).toHaveClass('inset-0')
|
||||
},
|
||||
)
|
||||
|
||||
@@ -109,7 +109,7 @@ const DialogContent = React.forwardRef<
|
||||
}, [shouldEnableMobileSwipe, swipeBind, swipeContainer])
|
||||
|
||||
const baseStyle = isMobileFullscreenMode
|
||||
? { paddingTop: 'env(safe-area-inset-top, 0px)' }
|
||||
? { paddingTop: 'var(--safe-area-top)' }
|
||||
: undefined
|
||||
|
||||
const mergedStyle = {
|
||||
@@ -153,7 +153,7 @@ const DialogContent = React.forwardRef<
|
||||
<DialogPrimitive.Close
|
||||
className="absolute right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground after:absolute after:-inset-2 after:content-[''] pointer-coarse:after:-inset-3.5"
|
||||
style={mobileFullscreen ? {
|
||||
top: 'calc(env(safe-area-inset-top, 0px) + 1rem)',
|
||||
top: 'calc(var(--safe-area-top) + 1rem)',
|
||||
} : { top: '1rem' }}
|
||||
>
|
||||
<X className="h-4 w-4" />
|
||||
|
||||
Reference in new issue
Block a user