Skip to content

Commit aa57a92

Browse files
committed
fix: bring back borders
1 parent 8efec84 commit aa57a92

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/core/WorkshopProvider.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,3 @@ export const WorkshopProvider = memo(function WorkshopProvider(
9292
</WorkshopContext.Provider>
9393
)
9494
})
95-
96-
WorkshopProvider.displayName = 'Memo(WorkshopProvider)'

src/core/config/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
32
import {ElementType, ReactNode} from 'react'
43

54
/** @public */

src/core/inspector/WorkshopInspector.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {InspectorTab} from './types'
1111

1212
const Root = styled(Card)`
1313
@media screen and (min-width: 600px) {
14+
border-left: 1px solid var(--card-border-color);
1415
min-width: 180px;
1516
max-width: 300px;
1617
}
@@ -46,7 +47,7 @@ export const WorkshopInspector = memo(function WorkshopInspector(props: {
4647
const display: ResponsiveProp<Display> = expanded ? ['block'] : ['none', 'none', 'block']
4748

4849
return (
49-
<Root display={display} flex={1} overflow={['hidden', 'hidden', 'auto']} shadow={1}>
50+
<Root display={display} flex={1} overflow={['hidden', 'hidden', 'auto']}>
5051
<Flex direction="column" height="fill">
5152
{showTabs && <InspectorHeader currentTabId={tabId} onTabChange={setTabId} tabs={tabs} />}
5253

src/core/navigator/WorkshopNavigator.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {MenuCollection, MenuList, MenuScope} from './types'
1515

1616
const Root = styled(Card)`
1717
@media screen and (min-width: 600px) {
18+
border-right: 1px solid var(--card-border-color);
1819
min-width: 180px;
1920
max-width: 300px;
2021
}

src/plugin-a11y/A11yInspector.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Box, Card, CardTone, Code, Stack, Text} from '@sanity/ui'
1+
import {Box, Card, Code, Stack, Text} from '@sanity/ui'
2+
import type {CardTone} from '@sanity/ui/theme'
23
import axe from 'axe-core'
34
import {memo} from 'react'
45

src/plugin-perf/PerfInspector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ export const PerfInspector = memo(function PerfInspector(): React.ReactNode {
2121
}
2222

2323
return (
24-
<Stack padding={2} space={2}>
24+
<Stack padding={2} gap={2}>
2525
{testDetails.map((detail) => {
2626
const testResults = results.filter((r) => r.name === detail.name)
2727

2828
return (
2929
<Card border key={detail.name} overflow="hidden" radius={2} style={{lineHeight: 0}}>
3030
<Flex>
31-
<Stack flex={1} padding={2} space={2}>
31+
<Stack flex={1} padding={2} gap={2}>
3232
<Text size={1} weight="semibold">
3333
{detail.title || detail.name}
3434
</Text>

0 commit comments

Comments
 (0)