Skip to content

Commit 5eee9a9

Browse files
devvaannshabose
authored andcommitted
feat: add better script generated box styles
1 parent 2108204 commit 5eee9a9

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

‎src/nls/root/strings.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ define({
187187
"LIVE_DEV_SETTINGS_SHOW_STARTER_BAR_PREFERENCE": "Show the starter bar when the live preview page is empty. Defaults to 'true'",
188188
"LIVE_DEV_SETTINGS_STYLES_BAR_POSITION_PREFERENCE": "Which edge the live preview styles bar docks to, 'top' or 'bottom'. Defaults to 'bottom'",
189189
"LIVE_DEV_TOOLBOX_SELECT_PARENT": "Select Parent",
190-
"LIVE_DEV_SCRIPT_GENERATED_BADGE": "Script generated",
191190
"LIVE_DEV_SCRIPT_GENERATED_TOOLTIP": "Added by a script, so it is not in the HTML source. Its CSS rules can still be edited.",
192191
"LIVE_DEV_STYLER_SCRIPT_ELEMENT_NOTICE": "Script-generated element: edits are saved to its CSS rules",
193192
"LIVE_DEV_TOOLBOX_EDIT_TEXT": "Edit Text",

‎src/styles/Extn-LayersPanel.less‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,13 +522,28 @@
522522
}
523523

524524
.layers-props-note {
525+
display: flex;
526+
align-items: flex-start;
527+
gap: 5px;
525528
padding: 4px 5px 6px;
526529
color: @project-panel-text-2;
527530
font-style: italic;
528531
line-height: 1.4;
529532
white-space: normal;
530533
}
531534

535+
.layers-props-note-icon {
536+
display: flex;
537+
flex: none;
538+
margin-top: 1px;
539+
540+
svg {
541+
width: 13px;
542+
height: 13px;
543+
display: block;
544+
}
545+
}
546+
532547
.layers-node.layers-root-node .layers-node-tag {
533548
font-weight: 500;
534549
color: @project-panel-text-2;
@@ -673,6 +688,21 @@
673688
}
674689
}
675690

691+
.layers-prop-static {
692+
flex: 1;
693+
min-width: 0;
694+
padding: 0 5px;
695+
color: @project-panel-text-2;
696+
font-family: @layers-mono;
697+
font-size: @sidebar-xs-font-size;
698+
line-height: 22px;
699+
white-space: nowrap;
700+
overflow: hidden;
701+
text-overflow: ellipsis;
702+
cursor: default;
703+
user-select: none;
704+
}
705+
676706
.layers-attrs {
677707
margin-top: 6px;
678708
}

0 commit comments

Comments
 (0)