Extract center column offset, reduce by 20px (#7974)

* extract offset, reduce by 20px

* move constant to `Layout/const.ts`
This commit is contained in:
Samuel Newman
2025-03-24 21:55:05 +02:00
committed by GitHub
parent 1b8719293c
commit 412b107420
6 changed files with 19 additions and 7 deletions
+2 -1
View File
@@ -28,6 +28,7 @@ import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
import {addStyle} from '#/lib/styles'
import {useLayoutBreakpoints} from '#/alf'
import {useDialogContext} from '#/components/Dialog'
import {CENTER_COLUMN_OFFSET} from '#/components/Layout'
interface AddedProps {
desktopFixedHeight?: boolean | number
@@ -179,7 +180,7 @@ const styles = StyleSheet.create({
marginRight: 'auto',
},
containerOffset: {
transform: [{translateX: -150}],
transform: [{translateX: CENTER_COLUMN_OFFSET}],
},
containerScroll: {
width: '100%',