|
1 | 1 | import styled from "styled-components" |
2 | 2 |
|
3 | | -export const DropdownWrapper = styled.div` |
4 | | - position: relative; |
5 | | - width: 100%; |
6 | | -` |
7 | | - |
8 | | -export const DropdownList = styled.div<{ $zIndex: number }>` |
9 | | - position: absolute; |
10 | | - top: calc(100% - 3px); |
11 | | - left: 0; |
12 | | - width: calc(100% - 2px); |
13 | | - max-height: 200px; |
14 | | - overflow-y: auto; |
15 | | - background-color: var(--vscode-dropdown-background); |
16 | | - border: 1px solid var(--vscode-list-activeSelectionBackground); |
17 | | - z-index: ${({ $zIndex }) => $zIndex}; |
18 | | - border-bottom-left-radius: 3px; |
19 | | - border-bottom-right-radius: 3px; |
20 | | -` |
21 | | - |
22 | | -export const DropdownItem = styled.div<{ $selected: boolean }>` |
23 | | - padding: 5px 10px; |
24 | | - cursor: pointer; |
25 | | - word-break: break-all; |
26 | | - white-space: normal; |
27 | | -
|
28 | | - background-color: ${({ $selected }) => ($selected ? "var(--vscode-list-activeSelectionBackground)" : "inherit")}; |
29 | | -
|
30 | | - &:hover { |
31 | | - background-color: var(--vscode-list-activeSelectionBackground); |
32 | | - } |
33 | | -` |
34 | | - |
| 3 | +// Keep StyledMarkdown as it's used by ModelDescriptionMarkdown.tsx |
35 | 4 | export const StyledMarkdown = styled.div` |
36 | 5 | font-family: |
37 | 6 | var(--vscode-font-family), |
@@ -76,34 +45,3 @@ export const StyledMarkdown = styled.div` |
76 | 45 | } |
77 | 46 | } |
78 | 47 | ` |
79 | | - |
80 | | -// Settings tab styles as CSS class names for use with cn function |
81 | | -// Vertical tabs |
82 | | - |
83 | | -// Tailwind-compatible class names for hiding scrollbars |
84 | | -export const scrollbarHideClasses = |
85 | | - "scrollbar-hide [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden" |
86 | | - |
87 | | -export const settingsTabsContainer = "flex flex-1 overflow-hidden [&.narrow_.tab-label]:hidden" |
88 | | - |
89 | | -// Default width when text labels are shown, narrower when only icons are visible |
90 | | -export const settingsTabList = |
91 | | - "w-48 data-[compact=true]:w-12 flex-shrink-0 flex flex-col overflow-y-auto overflow-x-hidden border-r border-vscode-sideBar-background" |
92 | | - |
93 | | -export const settingsTabTrigger = |
94 | | - "whitespace-nowrap overflow-hidden min-w-0 h-12 px-4 py-3 box-border flex items-center border-l-2 border-transparent text-vscode-foreground opacity-70 hover:bg-vscode-list-hoverBackground data-[compact=true]:w-12 data-[compact=true]:p-4" |
95 | | - |
96 | | -export const settingsTabTriggerActive = "opacity-100 border-vscode-focusBorder bg-vscode-list-activeSelectionBackground" |
97 | | - |
98 | | -// CSS classes for when the sidebar is in compact mode (icons only) |
99 | | -export const settingsCompactMode = |
100 | | - "data-[compact=true]:justify-center data-[compact=true]:items-center data-[compact=true]:px-2" |
101 | | - |
102 | | -// Utility class to hide scrollbars while maintaining scroll functionality |
103 | | -export const ScrollbarHide = styled.div` |
104 | | - scrollbar-width: none; /* Firefox */ |
105 | | - -ms-overflow-style: none; /* IE and Edge */ |
106 | | - &::-webkit-scrollbar { |
107 | | - display: none; /* Chrome, Safari, and Opera */ |
108 | | - } |
109 | | -` |
0 commit comments