mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 13:48:11 +08:00
40 lines
853 B
Svelte
40 lines
853 B
Svelte
<script lang="ts">
|
|
import { getContext } from "svelte";
|
|
import LayoutCol from "/src/components/layout/LayoutCol.svelte";
|
|
import WidgetLayout from "/src/components/widgets/WidgetLayout.svelte";
|
|
import type { PortfolioStore } from "/src/stores/portfolio";
|
|
|
|
const portfolio = getContext<PortfolioStore>("portfolio");
|
|
</script>
|
|
|
|
<LayoutCol class="properties">
|
|
<LayoutCol class="sections" scrollableY={true}>
|
|
<WidgetLayout layout={$portfolio.propertiesPanelLayout} layoutTarget="PropertiesPanel" />
|
|
</LayoutCol>
|
|
</LayoutCol>
|
|
|
|
<style lang="scss">
|
|
.properties {
|
|
height: 100%;
|
|
flex: 1 1 100%;
|
|
|
|
.sections {
|
|
flex: 1 1 100%;
|
|
|
|
// Used as a placeholder for empty assist widgets
|
|
.separator.section.horizontal {
|
|
margin: 0;
|
|
margin-left: 24px;
|
|
|
|
div {
|
|
width: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.text-button {
|
|
flex-basis: 0;
|
|
}
|
|
}
|
|
</style>
|