Skip to content

Commit c82b54b

Browse files
committed
Correct list row striping logic across components and remove the deprecated HorizontalSelector
1 parent 394aa03 commit c82b54b

9 files changed

Lines changed: 26 additions & 129 deletions

File tree

‎packages/ui/src/components/browser/SavedWebsites/SavedWebsites.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
gap: 8px;
1111
background-color: #dddddd;
1212

13-
&:nth-child(odd) {
13+
&:nth-child(even) {
1414
background-color: #cbcbcb;
1515
}
1616

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

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,37 @@
160160

161161
&__button {
162162
font-size: var(--font-size-11px);
163-
opacity: 0.5;
164163
pointer-events: all;
164+
position: relative;
165+
font-weight: 500;
166+
color: transparent;
167+
168+
&::before {
169+
content: attr(data-text);
170+
position: absolute;
171+
left: 0;
172+
top: 0;
173+
width: 100%;
174+
height: 100%;
175+
font-weight: normal;
176+
color: var(--vscode-foreground);
177+
opacity: 0.5;
178+
}
165179

166180
&:hover {
167-
opacity: 1;
181+
&::before {
182+
opacity: 1;
183+
}
168184
}
169185

170186
&--selected {
171-
opacity: 1;
187+
&::before {
188+
font-weight: 500;
189+
opacity: 1;
190+
}
172191
}
173192
}
174193
}
175-
176194
&__button {
177195
display: flex;
178196
align-items: center;

‎packages/ui/src/components/editor/panel/ChatInput/ChatInput.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ export const ChatInput: React.FC<ChatInputProps> = (props) => {
214214
)}
215215
title={props.edit_format_instructions?.[format]}
216216
onClick={() => props.on_edit_format_change?.(format)}
217+
data-text={format}
217218
>
218219
{format}
219220
</button>

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

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎packages/ui/src/components/editor/panel/HorizontalSelector/HorizontalSelector.stories.tsx‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

‎packages/ui/src/components/editor/panel/HorizontalSelector/HorizontalSelector.tsx‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

‎packages/ui/src/components/editor/panel/HorizontalSelector/index.ts‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎packages/ui/src/components/editor/settings/ConfigurationsList/ConfigurationsList.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
align-items: center;
2424
height: 36px;
2525

26-
&:nth-child(odd) {
26+
&:nth-child(even) {
2727
background-color: var(--vscode-welcomePage-tileBackground);
2828
}
2929

‎packages/ui/src/components/editor/settings/ModelProviders/ModelProviders.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
align-items: center;
2424
height: 36px;
2525

26-
&:nth-child(odd) {
26+
&:nth-child(even) {
2727
background-color: var(--vscode-welcomePage-tileBackground);
2828
}
2929

0 commit comments

Comments
 (0)