@@ -2,9 +2,11 @@ div#select-board-dialog {
22 margin : 5px ;
33}
44
5- div # select-board-dialog .selectBoardContainer . body {
5+ div # select-board-dialog .selectBoardContainer {
66 display : flex;
7+ gap : 10px ;
78 overflow : hidden;
9+ max-height : 100% ;
810}
911
1012.select-board-dialog .head {
@@ -19,12 +21,13 @@ div.dialogContent.select-board-dialog > div.head .title {
1921 margin-bottom : 10px ;
2022}
2123
22- div # select-board-dialog .selectBoardContainer .body .list .item .selected {
24+
25+ div # select-board-dialog .selectBoardContainer .list .item .selected {
2326 background : var (--theia-secondaryButton-hoverBackground );
2427}
2528
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 );
2831}
2932
3033# select-board-dialog .selectBoardContainer .search ,
@@ -34,7 +37,7 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
3437 background : var (--theia-editor-background );
3538}
3639
37- # select-board-dialog .selectBoardContainer .body . search input {
40+ # select-board-dialog .selectBoardContainer .search input {
3841 border : none;
3942 width : 100% ;
4043 height : auto;
@@ -46,58 +49,63 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
4649 color : var (--theia-input-foreground );
4750}
4851
49- # select-board-dialog .selectBoardContainer .body . search input : focus {
52+ # select-board-dialog .selectBoardContainer .search input : focus {
5053 box-shadow : none;
5154}
5255
53- # select-board-dialog .selectBoardContainer .body . container {
56+ # select-board-dialog .selectBoardContainer .container {
5457 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% ;
5866}
5967
60- # select-board-dialog .selectBoardContainer .body . left .container .content {
68+ # select-board-dialog .selectBoardContainer .left .container .content {
6169 margin : 0 5px 0 0 ;
6270}
6371
64- # select-board-dialog .selectBoardContainer .body . right .container .content {
72+ # select-board-dialog .selectBoardContainer .right .container .content {
6573 margin : 0 0 0 5px ;
6674}
6775
68- # select-board-dialog .selectBoardContainer .body . container .content .title {
76+ # select-board-dialog .selectBoardContainer .container .content .title {
6977 color : var (--theia-editorWidget-foreground );
7078 padding : 0px 0px 10px 0px ;
7179 text-transform : uppercase;
7280}
7381
74- # select-board-dialog .selectBoardContainer .body . container .content .footer {
82+ # select-board-dialog .selectBoardContainer .container .content .footer {
7583 padding : 10px 5px 10px 0px ;
7684}
7785
78- # select-board-dialog .selectBoardContainer .body . container .content .loading {
86+ # select-board-dialog .selectBoardContainer .container .content .loading {
7987 font-size : var (--theia-ui-font-size1 );
8088 color : var (--theia-editorWidget-foreground );
8189 padding : 10px 5px 10px 10px ;
8290 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 */
8492 max-height : 227px ;
8593 min-height : 227px ;
8694}
8795
88- # select-board-dialog .selectBoardContainer .body . list .item {
96+ # select-board-dialog .selectBoardContainer .list .item {
8997 padding : 10px 5px 10px 10px ;
9098 display : flex;
91- justify-content : end;
9299 white-space : nowrap;
93100 overflow-x : hidden;
101+ flex : 1 0 ;
94102}
95103
96- # select-board-dialog .selectBoardContainer .body . list .item .selected-icon {
104+ # select-board-dialog .selectBoardContainer .list .item .selected-icon {
97105 margin-left : auto;
98106}
99107
100- # select-board-dialog .selectBoardContainer .body . list .item .details {
108+ # select-board-dialog .selectBoardContainer .list .item .details {
101109 font-size : var (--theia-ui-font-size1 );
102110 opacity : var (--theia-mod-disabled-opacity );
103111 width : 155px ; /* used heuristics for the calculation */
@@ -106,43 +114,36 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
106114 text-overflow : ellipsis;
107115}
108116
109- # select-board-dialog .selectBoardContainer .body . list .item .missing {
117+ # select-board-dialog .selectBoardContainer .list .item .missing {
110118 opacity : var (--theia-mod-disabled-opacity );
111119}
112120
113- # select-board-dialog .selectBoardContainer .body . list .item : hover {
121+ # select-board-dialog .selectBoardContainer .list .item : hover {
114122 background : var (--theia-secondaryButton-hoverBackground );
115123}
116124
117- # select-board-dialog .selectBoardContainer .body .list .label {
118- max-width : 215px ;
119- width : 215px ;
125+ # select-board-dialog .selectBoardContainer .list .label {
120126 white-space : pre;
121127 overflow : hidden;
122128 text-overflow : ellipsis;
123129}
124130
125- # select-board-dialog .selectBoardContainer .body . list {
131+ # select-board-dialog .selectBoardContainer .list {
126132 max-height : 200px ;
127- min-height : 200px ;
128133 overflow-y : auto;
129134}
130135
131- # select-board-dialog .selectBoardContainer .body . ports .list {
136+ # select-board-dialog .selectBoardContainer .ports .list {
132137 margin : 47px 0px 0px 0px ; /* 47 is 37 as input height for the `Boards`, plus 10 margin bottom. */
133138}
134139
135- # select-board-dialog .selectBoardContainer .body . search {
140+ # select-board-dialog .selectBoardContainer .search {
136141 margin-bottom : 10px ;
137142 display : flex;
138143 align-items : center;
139144 padding-right : 5px ;
140145}
141146
142- .p-Widget .dialogOverlay .dialogContent .select-board-dialog {
143- width : 500px ;
144- }
145-
146147.arduino-boards-toolbar-item-container {
147148 align-items : center;
148149 background : var (--theia-arduino-toolbar-dropdown-background );
@@ -264,10 +265,20 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
264265
265266/* High Contrast Theme rules */
266267/* 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 {
268269 outline : 1px dashed var (--theia-focusBorder );
269270}
270271
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 {
272273 outline : 1px solid var (--theia-focusBorder );
273274}
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