mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Fix missing artboard layer icon
This commit is contained in:
@@ -644,15 +644,15 @@
|
||||
{@html $nodeGraph.thumbnails.get(listing.entry.id)}
|
||||
{/if}
|
||||
</div>
|
||||
{#if listing.entry.name === "Artboard"}
|
||||
<IconLabel icon="Artboard" class="layer-type-icon" />
|
||||
{#if listing.entry.reference === "Artboard"}
|
||||
<IconLabel icon="Artboard" class="layer-type-icon" tooltipLabel="Artboard" />
|
||||
{/if}
|
||||
<LayoutRow class="layer-name" on:dblclick={() => onEditLayerName(listing)}>
|
||||
<input
|
||||
data-text-input
|
||||
type="text"
|
||||
value={listing.entry.alias}
|
||||
placeholder={listing.entry.name}
|
||||
placeholder={listing.entry.reference}
|
||||
disabled={!listing.editingName}
|
||||
on:blur={() => onEditLayerNameDeselect(listing)}
|
||||
on:keydown={(e) => e.key === "Escape" && onEditLayerNameDeselect(listing)}
|
||||
@@ -842,7 +842,6 @@
|
||||
}
|
||||
|
||||
.layer-type-icon {
|
||||
flex: 0 0 auto;
|
||||
margin-left: 8px;
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
||||
@@ -745,10 +745,6 @@
|
||||
|
||||
<style lang="scss" global>
|
||||
.number-input {
|
||||
input {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.narrow {
|
||||
--widget-height: 20px;
|
||||
}
|
||||
@@ -973,5 +969,9 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -827,13 +827,10 @@ export class UpdateDocumentLayerDetails extends JsMessage {
|
||||
export class LayerPanelEntry {
|
||||
id!: bigint;
|
||||
|
||||
name!: string;
|
||||
reference!: string;
|
||||
|
||||
alias!: string;
|
||||
|
||||
@Transform(({ value }: { value: string }) => value || undefined)
|
||||
debugLayerIdTooltip!: string | undefined;
|
||||
|
||||
inSelectedNetwork!: boolean;
|
||||
|
||||
childrenAllowed!: boolean;
|
||||
|
||||
Reference in New Issue
Block a user