Skip to content

Commit ce0777d

Browse files
authored
SY-2953 - Fixed Cluster Dropdown Overflow Style (#1471)
1 parent af3b759 commit ce0777d

4 files changed

Lines changed: 23 additions & 17 deletions

File tree

console/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@synnaxlabs/console",
33
"private": true,
4-
"version": "0.45.2",
4+
"version": "0.45.3",
55
"type": "module",
66
"scripts": {
77
"check-types": "tsc --noEmit",

console/src/cluster/Dropdown.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
* included in the file licenses/APL.txt.
1010
*/
1111

12-
.console-cluster-dropdown > button {
13-
border-top-right-radius: 0 !important;
14-
border-bottom-right-radius: 0;
15-
max-width: 175px;
12+
.console-cluster-dropdown {
13+
> button {
14+
border-top-right-radius: 0 !important;
15+
border-bottom-right-radius: 0;
16+
max-width: 175px;
1617

17-
> :nth-child(2) {
18-
overflow: hidden;
19-
text-overflow: ellipsis;
18+
> :nth-child(2) {
19+
overflow: hidden;
20+
text-overflow: ellipsis;
21+
}
2022
}
2123
}
2224

2325
.console-cluster-list {
2426
width: 400px;
25-
.pluto-header {
26-
background: var(--pluto-gray-l1);
27-
}
28-
.pluto-list__container {
29-
background: var(--pluto-gray-l1);
27+
overflow-y: auto;
28+
.pluto-list__item {
29+
min-height: 10rem;
3030
}
3131
}

console/src/cluster/Dropdown.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,17 @@ const ListItem = ({ validateName, ...rest }: ListItemProps): ReactElement | null
6464
y
6565
selected={selected}
6666
onSelect={onSelect}
67+
gap="small"
6768
{...rest}
6869
>
6970
<Text.MaybeEditable
7071
id={`cluster-dropdown-${item.key}`}
71-
weight={450}
72+
weight={500}
7273
value={item.name}
7374
onChange={handleChange}
7475
allowDoubleClick={false}
7576
/>
76-
<Text.Text color={10}>
77+
<Text.Text color={9} weight={450}>
7778
{item.host}:{item.port}
7879
</Text.Text>
7980
</CoreList.Item>
@@ -255,7 +256,12 @@ export const Dropdown = (): ReactElement => {
255256
Connect
256257
</Button.Button>
257258
</Flex.Box>
258-
<Flex.Box empty style={{ height: 190 }} onContextMenu={menuProps.open}>
259+
<Flex.Box
260+
className={CSS.B("cluster-list")}
261+
empty
262+
style={{ height: 190 }}
263+
onContextMenu={menuProps.open}
264+
>
259265
{keys.map((key, i) => (
260266
<ListItem key={key} index={i} itemKey={key} validateName={validateName} />
261267
))}

core/pkg/version/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.45.1
1+
0.45.2

0 commit comments

Comments
 (0)