mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 00:38:12 +08:00
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="separator" :class="[direction.toLowerCase(), type.toLowerCase()]">
|
||||
<div v-if="type === SeparatorType.Section"></div>
|
||||
<div v-if="[SeparatorType.Section, SeparatorType.List].includes(type)"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
&.section {
|
||||
&.section,
|
||||
&.list {
|
||||
width: 100%;
|
||||
margin: 8px 0;
|
||||
|
||||
div {
|
||||
height: 1px;
|
||||
@@ -26,6 +26,14 @@
|
||||
background: var(--color-7-middlegray);
|
||||
}
|
||||
}
|
||||
|
||||
&.section {
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
&.list {
|
||||
margin: 4px 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.horizontal {
|
||||
@@ -37,9 +45,9 @@
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
&.section {
|
||||
&.section,
|
||||
&.list {
|
||||
height: 100%;
|
||||
margin: 0 8px;
|
||||
|
||||
div {
|
||||
height: calc(100% - 8px);
|
||||
@@ -48,6 +56,14 @@
|
||||
background: var(--color-7-middlegray);
|
||||
}
|
||||
}
|
||||
|
||||
&.section {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
&.list {
|
||||
margin: 0 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -64,6 +80,7 @@ export enum SeparatorType {
|
||||
"Related" = "Related",
|
||||
"Unrelated" = "Unrelated",
|
||||
"Section" = "Section",
|
||||
"List" = "List",
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
|
||||
Reference in New Issue
Block a user