Skip to content

Commit b8efb6f

Browse files
Padding & colour tweaks (#356)
* Tweak padding and ... menu colour/size * Avoid "Action" header moving when you change page
1 parent 0d3b338 commit b8efb6f

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/components/DataSampleGridView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ import { FormattedMessage } from "react-intl";
2323
const gridCommonProps: Partial<GridProps> = {
2424
gridTemplateColumns: "290px 1fr",
2525
gap: 3,
26-
px: 10,
27-
py: 2,
26+
px: 5,
2827
w: "100%",
2928
};
3029

@@ -138,6 +137,7 @@ const DataSamplesGridView = () => {
138137
) : (
139138
<Grid
140139
{...gridCommonProps}
140+
py={2}
141141
alignItems="start"
142142
autoRows="max-content"
143143
overflow="auto"

src/components/DataSamplesMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const DataSamplesMenu = () => {
2929
id: "content.data.controlbar.button.menu",
3030
})}
3131
variant="ghost"
32-
icon={<Icon as={MdMoreVert} boxSize={10} color="brand.500" />}
32+
icon={<Icon as={MdMoreVert} color="gray.800" boxSize={7} />}
3333
isRound
3434
/>
3535
<Portal>

src/components/LiveGraphPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const LiveGraphPanel = ({
5656
top={0}
5757
left={0}
5858
right={0}
59-
px={2.5}
59+
px={5}
6060
py={2.5}
6161
w={`calc(100% - ${
6262
showPredictedGesture ? `${predictedGestureDisplayWidth}px` : "0"

src/components/TestingModelGridView.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import MoreMenuButton from "./MoreMenuButton";
3333
const gridCommonProps: Partial<GridProps> = {
3434
gridTemplateColumns: "290px 360px 40px auto",
3535
gap: 3,
36-
py: 2,
3736
w: "100%",
3837
};
3938

@@ -86,9 +85,9 @@ const TestingModelGridView = () => {
8685
values={{ action: detectedLabel }}
8786
/>
8887
</VisuallyHidden>
89-
<HeadingGrid {...gridCommonProps} px={10} headings={headings} />
88+
<HeadingGrid {...gridCommonProps} px={5} headings={headings} />
9089
<VStack
91-
px={10}
90+
px={5}
9291
w="full"
9392
h={0}
9493
justifyContent="start"
@@ -101,6 +100,7 @@ const TestingModelGridView = () => {
101100
<Grid
102101
{...gridCommonProps}
103102
{...(projectEdited ? { w: "fit-content", pr: 0 } : {})}
103+
py={2}
104104
autoRows="max-content"
105105
h="fit-content"
106106
alignSelf="start"
@@ -154,7 +154,7 @@ const TestingModelGridView = () => {
154154
<VStack w="full" flexShrink={0} bottom={0} gap={0} bg="gray.25">
155155
<HStack
156156
justifyContent="right"
157-
px={10}
157+
px={5}
158158
py={2}
159159
w="full"
160160
borderBottomWidth={3}

src/pages/DataSamplesPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const DataSamplesPage = () => {
4040
<VStack w="full" flexShrink={0} bottom={0} gap={0} bg="gray.25">
4141
<HStack
4242
justifyContent="space-between"
43-
px={10}
43+
px={5}
4444
py={2}
4545
w="full"
4646
borderBottomWidth={3}

0 commit comments

Comments
 (0)