@@ -2,9 +2,11 @@ div#select-board-dialog {
2
2
margin : 5px ;
3
3
}
4
4
5
- div # select-board-dialog .selectBoardContainer . body {
5
+ div # select-board-dialog .selectBoardContainer {
6
6
display : flex;
7
+ gap : 10px ;
7
8
overflow : hidden;
9
+ max-height : 100% ;
8
10
}
9
11
10
12
.select-board-dialog .head {
@@ -19,12 +21,13 @@ div.dialogContent.select-board-dialog > div.head .title {
19
21
margin-bottom : 10px ;
20
22
}
21
23
22
- div # select-board-dialog .selectBoardContainer .body .list .item .selected {
24
+
25
+ div # select-board-dialog .selectBoardContainer .list .item .selected {
23
26
background : var (--theia-secondaryButton-hoverBackground );
24
27
}
25
28
26
- div # select-board-dialog .selectBoardContainer .body . list .item .selected i {
27
- color : var (--theia-list-activeSelectionIconForeground );
29
+ div # select-board-dialog .selectBoardContainer .list .item .selected i {
30
+ color : var (--theia-arduino-branding-primary );
28
31
}
29
32
30
33
# select-board-dialog .selectBoardContainer .search ,
@@ -34,7 +37,7 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
34
37
background : var (--theia-editor-background );
35
38
}
36
39
37
- # select-board-dialog .selectBoardContainer .body . search input {
40
+ # select-board-dialog .selectBoardContainer .search input {
38
41
border : none;
39
42
width : 100% ;
40
43
height : auto;
@@ -46,58 +49,63 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
46
49
color : var (--theia-input-foreground );
47
50
}
48
51
49
- # select-board-dialog .selectBoardContainer .body . search input : focus {
52
+ # select-board-dialog .selectBoardContainer .search input : focus {
50
53
box-shadow : none;
51
54
}
52
55
53
- # select-board-dialog .selectBoardContainer .body . container {
56
+ # select-board-dialog .selectBoardContainer .container {
54
57
flex : 1 ;
55
- padding : 0px 10px 0px 0px ;
56
- min-width : 240px ;
57
- max-width : 240px ;
58
+ overflow : hidden;
59
+ max-height : 100% ;
60
+ }
61
+
62
+ # select-board-dialog .selectBoardContainer .container .content {
63
+ display : flex;
64
+ flex-direction : column;
65
+ max-height : 100% ;
58
66
}
59
67
60
- # select-board-dialog .selectBoardContainer .body . left .container .content {
68
+ # select-board-dialog .selectBoardContainer .left .container .content {
61
69
margin : 0 5px 0 0 ;
62
70
}
63
71
64
- # select-board-dialog .selectBoardContainer .body . right .container .content {
72
+ # select-board-dialog .selectBoardContainer .right .container .content {
65
73
margin : 0 0 0 5px ;
66
74
}
67
75
68
- # select-board-dialog .selectBoardContainer .body . container .content .title {
76
+ # select-board-dialog .selectBoardContainer .container .content .title {
69
77
color : var (--theia-editorWidget-foreground );
70
78
padding : 0px 0px 10px 0px ;
71
79
text-transform : uppercase;
72
80
}
73
81
74
- # select-board-dialog .selectBoardContainer .body . container .content .footer {
82
+ # select-board-dialog .selectBoardContainer .container .content .footer {
75
83
padding : 10px 5px 10px 0px ;
76
84
}
77
85
78
- # select-board-dialog .selectBoardContainer .body . container .content .loading {
86
+ # select-board-dialog .selectBoardContainer .container .content .loading {
79
87
font-size : var (--theia-ui-font-size1 );
80
88
color : var (--theia-editorWidget-foreground );
81
89
padding : 10px 5px 10px 10px ;
82
90
text-transform : uppercase;
83
- /* The max, min-height comes from `.body . list` 200px + 47px top padding - 2 * 10px top padding */
91
+ /* The max, min-height comes from `.list` 200px + 47px top padding - 2 * 10px top padding */
84
92
max-height : 227px ;
85
93
min-height : 227px ;
86
94
}
87
95
88
- # select-board-dialog .selectBoardContainer .body . list .item {
96
+ # select-board-dialog .selectBoardContainer .list .item {
89
97
padding : 10px 5px 10px 10px ;
90
98
display : flex;
91
- justify-content : end;
92
99
white-space : nowrap;
93
100
overflow-x : hidden;
101
+ flex : 1 0 ;
94
102
}
95
103
96
- # select-board-dialog .selectBoardContainer .body . list .item .selected-icon {
104
+ # select-board-dialog .selectBoardContainer .list .item .selected-icon {
97
105
margin-left : auto;
98
106
}
99
107
100
- # select-board-dialog .selectBoardContainer .body . list .item .details {
108
+ # select-board-dialog .selectBoardContainer .list .item .details {
101
109
font-size : var (--theia-ui-font-size1 );
102
110
opacity : var (--theia-mod-disabled-opacity );
103
111
width : 155px ; /* used heuristics for the calculation */
@@ -106,43 +114,36 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
106
114
text-overflow : ellipsis;
107
115
}
108
116
109
- # select-board-dialog .selectBoardContainer .body . list .item .missing {
117
+ # select-board-dialog .selectBoardContainer .list .item .missing {
110
118
opacity : var (--theia-mod-disabled-opacity );
111
119
}
112
120
113
- # select-board-dialog .selectBoardContainer .body . list .item : hover {
121
+ # select-board-dialog .selectBoardContainer .list .item : hover {
114
122
background : var (--theia-secondaryButton-hoverBackground );
115
123
}
116
124
117
- # select-board-dialog .selectBoardContainer .body .list .label {
118
- max-width : 215px ;
119
- width : 215px ;
125
+ # select-board-dialog .selectBoardContainer .list .label {
120
126
white-space : pre;
121
127
overflow : hidden;
122
128
text-overflow : ellipsis;
123
129
}
124
130
125
- # select-board-dialog .selectBoardContainer .body . list {
131
+ # select-board-dialog .selectBoardContainer .list {
126
132
max-height : 200px ;
127
- min-height : 200px ;
128
133
overflow-y : auto;
129
134
}
130
135
131
- # select-board-dialog .selectBoardContainer .body . ports .list {
136
+ # select-board-dialog .selectBoardContainer .ports .list {
132
137
margin : 47px 0px 0px 0px ; /* 47 is 37 as input height for the `Boards`, plus 10 margin bottom. */
133
138
}
134
139
135
- # select-board-dialog .selectBoardContainer .body . search {
140
+ # select-board-dialog .selectBoardContainer .search {
136
141
margin-bottom : 10px ;
137
142
display : flex;
138
143
align-items : center;
139
144
padding-right : 5px ;
140
145
}
141
146
142
- .p-Widget .dialogOverlay .dialogContent .select-board-dialog {
143
- width : 500px ;
144
- }
145
-
146
147
.arduino-boards-toolbar-item-container {
147
148
align-items : center;
148
149
background : var (--theia-arduino-toolbar-dropdown-background );
@@ -264,10 +265,20 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
264
265
265
266
/* High Contrast Theme rules */
266
267
/* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
267
- .hc-black .hc-theia .theia-hc # select-board-dialog .selectBoardContainer .body . list .item : hover {
268
+ .hc-black .hc-theia .theia-hc # select-board-dialog .selectBoardContainer .list .item : hover {
268
269
outline : 1px dashed var (--theia-focusBorder );
269
270
}
270
271
271
- .hc-black .hc-theia .theia-hc div # select-board-dialog .selectBoardContainer .body . list .item .selected {
272
+ .hc-black .hc-theia .theia-hc div # select-board-dialog .selectBoardContainer .list .item .selected {
272
273
outline : 1px solid var (--theia-focusBorder );
273
274
}
275
+
276
+ @media only screen and (max-height : 400px ) {
277
+ div .dialogContent .select-board-dialog > div .head {
278
+ display : none;
279
+ }
280
+
281
+ # select-board-dialog .selectBoardContainer .container .content .title {
282
+ display : none;
283
+ }
284
+ }
0 commit comments