Skip to content

Commit

Permalink
fix(vision): center loading spinner (#6900)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninaandal authored Jun 17, 2024
1 parent e161e0b commit 5943d4f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/@sanity/vision/src/containers/VisionContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {useToast} from '@sanity/ui'
import {Flex, useToast} from '@sanity/ui'
import {useTranslation} from 'sanity'

import {DelayedSpinner} from '../components/DelayedSpinner'
Expand All @@ -13,7 +13,11 @@ export function VisionContainer(props: VisionProps) {
const {t} = useTranslation(visionLocaleNamespace)

if (!loadedDatasets) {
return <DelayedSpinner />
return (
<Flex align="center" height="fill" justify="center">
<DelayedSpinner />
</Flex>
)
}

const datasets =
Expand Down

0 comments on commit 5943d4f

Please sign in to comment.