Skip to content

Commit d5c3a6d

Browse files
devvaannshabose
authored andcommitted
feat: not show tagnames in the layers panel
1 parent 3940e61 commit d5c3a6d

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

‎src/nls/root/strings.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,7 @@ define({
848848
"LIVE_PREVIEW_LAYERS_EDIT_DECLARATION": "Edit Declaration",
849849
"LIVE_PREVIEW_LAYERS_SHOW_SCRIPT_NODES": "Show Script-Generated Elements",
850850
"LIVE_PREVIEW_LAYERS_SCRIPT_GENERATED": "Generated by script, not in the source file",
851+
"LIVE_PREVIEW_LAYERS_TAG_TOOLTIP": "Show Tag Name Tooltip",
851852

852853
"LIVE_DEV_DETACHED_REPLACED_WITH_DEVTOOLS": "Live Preview was canceled because the browser's developer tools were opened",
853854
"LIVE_DEV_DETACHED_TARGET_CLOSED": "Live Preview was canceled because the page was closed in the browser",

‎src/styles/Extn-LayersPanel.less‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,12 +965,31 @@
965965
margin-left: 5px;
966966
color: @project-panel-text-2;
967967

968+
&:not(:first-child) {
969+
display: none;
970+
}
971+
968972
&:first-child {
969973
margin-left: 0;
970974
color: @project-panel-text-1;
971975
}
972976
}
973977

978+
.layers-tag-tip {
979+
position: fixed;
980+
z-index: 1000;
981+
padding: 2px 6px;
982+
border: 1px solid rgba(255, 255, 255, 0.12);
983+
border-radius: 4px;
984+
background: #2f2f2f;
985+
color: @project-panel-text-1;
986+
font-family: @layers-mono;
987+
font-size: 11px;
988+
line-height: 15px;
989+
white-space: nowrap;
990+
pointer-events: none;
991+
}
992+
974993
.layers-node-text {
975994
color: @project-panel-text-2;
976995
font-style: italic;

0 commit comments

Comments
 (0)