@@ -21,7 +21,7 @@ import { useClient } from "../context/client"
2121import { Keymap } from "../context/keymap"
2222import { useLocation } from "../context/location"
2323import { useTheme } from "../context/theme"
24- import { DialogHeader , useDialog } from "../ui/dialog"
24+ import { DIALOG_INSET , DIALOG_LIST_INSET , DialogHeader , useDialog } from "../ui/dialog"
2525import { DialogPrompt } from "../ui/dialog-prompt"
2626import { DialogSelect } from "../ui/dialog-select"
2727import { Link } from "../ui/link"
@@ -145,12 +145,12 @@ export function DialogIntegration(
145145 title = "Connect an integration"
146146 options = { options ( ) }
147147 emptyView = {
148- < box paddingLeft = { 4 } paddingRight = { 4 } >
148+ < box paddingLeft = { DIALOG_LIST_INSET } paddingRight = { DIALOG_LIST_INSET } >
149149 < text fg = { theme . text . muted } > No integrations available</ text >
150150 </ box >
151151 }
152152 noMatchView = {
153- < box paddingLeft = { 4 } paddingRight = { 4 } >
153+ < box paddingLeft = { DIALOG_LIST_INSET } paddingRight = { DIALOG_LIST_INSET } >
154154 < text fg = { theme . text . muted } > No integrations found</ text >
155155 </ box >
156156 }
@@ -510,17 +510,17 @@ function CommandView(props: { title: string; output: string; message: string })
510510 onMount ( ( ) => dialog . setSize ( "large" ) )
511511 return (
512512 < box gap = { 1 } paddingBottom = { 1 } >
513- < DialogHeader paddingX = { 2 } title = { props . title } closeLabel = "esc close" />
513+ < DialogHeader newInset = { DIALOG_INSET } title = { props . title } closeLabel = "esc close" />
514514 < box
515515 backgroundColor = { overlayTheme . background . raised . high }
516- paddingLeft = { 2 }
517- paddingRight = { 2 }
516+ paddingLeft = { DIALOG_INSET }
517+ paddingRight = { DIALOG_INSET }
518518 paddingTop = { 1 }
519519 paddingBottom = { 1 }
520520 >
521521 < text fg = { overlayTheme . text . base } > { props . output . trim ( ) } </ text >
522522 </ box >
523- < box paddingLeft = { 2 } paddingRight = { 2 } >
523+ < box paddingLeft = { DIALOG_INSET } paddingRight = { DIALOG_INSET } >
524524 < text fg = { theme . text . muted } > { props . message } </ text >
525525 </ box >
526526 </ box >
@@ -796,7 +796,7 @@ function OAuthView(props: {
796796} ) {
797797 const theme = useTheme ( ) . surface ( "dialog" )
798798 return (
799- < box paddingLeft = { 2 } paddingRight = { 2 } gap = { 1 } paddingBottom = { 1 } >
799+ < box paddingLeft = { DIALOG_INSET } paddingRight = { DIALOG_INSET } gap = { 1 } paddingBottom = { 1 } >
800800 < DialogHeader title = { props . title } />
801801 < Show when = { props . url } >
802802 { ( url ) => (
@@ -970,7 +970,7 @@ function StringChoiceField(props: {
970970 ] ,
971971 } ) )
972972 return (
973- < box paddingLeft = { 4 } paddingRight = { 4 } paddingBottom = { 1 } gap = { 1 } >
973+ < box paddingLeft = { DIALOG_INSET } paddingRight = { DIALOG_INSET } paddingBottom = { 1 } gap = { 1 } >
974974 < DialogHeader title = { formLabel ( props . field ) } onClose = { ( ) => ( store . editing ? back ( ) : dialog . clear ( ) ) } />
975975 < Show when = { props . field . description } > { ( description ) => < text fg = { theme . text . muted } > { description ( ) } </ text > } </ Show >
976976 < scrollbox
0 commit comments