Skip to content

Commit 2ecc18b

Browse files
committed
Refactor the mode selection buttons by removing individual button borders and applying a single border and divider to the container element
1 parent 9b56c7d commit 2ecc18b

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

‎packages/ui/src/components/editor/panel/ModeButton/ModeButton.module.scss‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
transform: translateY(0);
1111
}
1212
}
13+
1314
.button {
1415
display: flex;
1516
align-items: center;
1617
justify-content: center;
1718
flex-direction: column;
1819
padding: var(--padding-24px) var(--padding-12px) var(--padding-24px)
1920
var(--padding-12px);
20-
border: 1px solid var(--vscode-toolbar-hoverBackground);
21-
border-radius: var(--border-radius-10px);
2221

2322
&:hover {
2423
background-color: var(--vscode-toolbar-hoverBackground);

‎packages/vscode/src/views/panel/frontend/Home/Home.module.scss‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,28 @@
8484

8585
&__mode {
8686
display: flex;
87-
gap: var(--padding-8px);
8887
width: 100%;
8988
position: relative;
9089
background-color: var(--vscode-sideBar-background);
9190
border-radius: var(--border-radius-10px);
91+
border: 1px solid var(--vscode-toolbar-hoverBackground);
92+
overflow: hidden;
9293

9394
> button {
9495
flex: 1;
9596
}
97+
98+
&::after {
99+
content: '';
100+
position: absolute;
101+
left: 50%;
102+
top: 50%;
103+
transform: translate(-50%, -50%);
104+
width: 1px;
105+
height: 35px;
106+
background-color: var(--vscode-toolbar-hoverBackground);
107+
pointer-events: none;
108+
}
96109
}
97110

98111
&__buttons {

‎packages/vscode/src/views/settings/frontend/Home/sections/GeneralSection.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const GeneralSection = forwardRef<HTMLDivElement, Props>(
109109
/>
110110
<Item
111111
title="Checkpoint Lifespan"
112-
description="The lifespan of checkpoints in hours. Checkpoints older than this will be automatically deleted."
112+
description="The lifespan of checkpoints in hours. Checkpoints older than this will be automatically deleted. All are cleared upon system reboot."
113113
slot={
114114
<Input
115115
type="number"

0 commit comments

Comments
 (0)