File tree Expand file tree Collapse file tree 3 files changed +22
-19
lines changed
frontend/frame-editors/frame-tree Expand file tree Collapse file tree 3 files changed +22
-19
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ const MAX_TITLE_WIDTH = 20;
26
26
const MAX_SEARCH_RESULTS = 10 ;
27
27
const ICON_WIDTH = "28px" ;
28
28
29
+ const BUTTON_LABELS = false ;
30
+
29
31
export class ManageCommands {
30
32
// TODO: setting this to FrameTitleBarProps causes type issues in frame-editors/jupyter-editor/editor.ts
31
33
// So, there is probably a fundamental problem with that mapping into "AllActions"
@@ -480,19 +482,21 @@ export class ManageCommands {
480
482
label = (
481
483
< >
482
484
{ icon ?? < Icon name = "square" /> }
483
- < div
484
- style = { {
485
- fontSize : "11px" ,
486
- color : "#666" ,
487
- marginTop : "-10px" ,
488
- // special case: button='' explicitly means no label
489
- width : cmd . button === "" ? undefined : "50px" ,
490
- overflow : "hidden" ,
491
- textOverflow : "ellipsis" ,
492
- } }
493
- >
494
- { buttonLabel }
495
- </ div >
485
+ { BUTTON_LABELS && (
486
+ < div
487
+ style = { {
488
+ fontSize : "11px" ,
489
+ color : "#666" ,
490
+ marginTop : "-10px" ,
491
+ // special case: button='' explicitly means no label
492
+ width : cmd . button === "" ? undefined : "50px" ,
493
+ overflow : "hidden" ,
494
+ textOverflow : "ellipsis" ,
495
+ } }
496
+ >
497
+ { buttonLabel }
498
+ </ div >
499
+ ) }
496
500
</ >
497
501
) ;
498
502
} else {
Original file line number Diff line number Diff line change @@ -1065,7 +1065,7 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
1065
1065
title = { label }
1066
1066
items = { children }
1067
1067
button = { false }
1068
- style = { { color : "#333" , padding : 0 , height : "36px" } }
1068
+ style = { { color : "#333" , padding : 0 } }
1069
1069
/>
1070
1070
) ;
1071
1071
} else {
@@ -1076,7 +1076,7 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
1076
1076
key = { key }
1077
1077
disabled = { disabled }
1078
1078
onClick = { onClick }
1079
- style = { { color : "#333" , padding : 0 , height : "36px" } }
1079
+ style = { { color : "#333" , padding : 0 } }
1080
1080
>
1081
1081
{ label }
1082
1082
</ Button >
@@ -1104,11 +1104,10 @@ export function FrameTitleBar(props: FrameTitleBarProps) {
1104
1104
style = { {
1105
1105
borderBottom : popup ? undefined : "1px solid #ccc" ,
1106
1106
background : "#fafafa" ,
1107
- height : "36px" ,
1108
- opacity : is_active ? undefined : 0.5 ,
1107
+ opacity : is_active ? undefined : 0.3 ,
1109
1108
} }
1110
1109
>
1111
- < div style = { { margin : "-1px 0 -1px 0" } } > { v } </ div >
1110
+ < div style = { { marginBottom : "-2px" , paddingTop : '4px' } } > { v } </ div >
1112
1111
</ div >
1113
1112
) ;
1114
1113
}
Original file line number Diff line number Diff line change 4
4
"rootDir" : " ./" ,
5
5
"outDir" : " dist"
6
6
},
7
- "exclude" : [" node_modules" , " dist" , " test" ]
7
+ "exclude" : [" node_modules" , " ../node_modules " , " dist" , " test" ]
8
8
}
You can’t perform that action at this time.
0 commit comments