mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 10:58:04 +08:00
Move all icon SVG imports to the Icon component
This change also removes the need to specify the icon size.
This commit is contained in:
@@ -4,9 +4,7 @@
|
||||
<div class="tab-group">
|
||||
<div class="tab" :class="{ active: tabIndex === tabActiveIndex }" v-for="(tabLabel, tabIndex) in tabLabels" :key="tabLabel">
|
||||
<span>{{ tabLabel }}</span>
|
||||
<IconButton :size="16" :iconSize="12" v-if="tabCloseButtons">
|
||||
<CloseX />
|
||||
</IconButton>
|
||||
<IconButton :icon="'CloseX'" :size="16" v-if="tabCloseButtons" />
|
||||
</div>
|
||||
</div>
|
||||
<PopoverButton :icon="PopoverButtonIcon.VerticalEllipsis">
|
||||
@@ -142,7 +140,6 @@ import Minimap from "../panels/Minimap.vue";
|
||||
import IconButton from "../widgets/buttons/IconButton.vue";
|
||||
import PopoverButton, { PopoverButtonIcon } from "../widgets/buttons/PopoverButton.vue";
|
||||
import { PopoverDirection } from "../widgets/overlays/Popover.vue";
|
||||
import CloseX from "../../../assets/12px-solid/close-x.svg";
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
@@ -152,7 +149,6 @@ export default defineComponent({
|
||||
Minimap,
|
||||
IconButton,
|
||||
PopoverButton,
|
||||
CloseX,
|
||||
},
|
||||
props: {
|
||||
tabMinWidths: { type: Boolean, default: false },
|
||||
|
||||
Reference in New Issue
Block a user