perspective context menu

This commit is contained in:
Jan Prochazka
2022-08-05 20:55:04 +02:00
parent 1ed01e9839
commit 9a2c12d558
4 changed files with 101 additions and 92 deletions

View File

@@ -1,8 +1,9 @@
<script lang="ts">
export let width;
export let isFlex;
</script>
<div style={`max-width: ${width}px`}>
<div style={`max-width: ${width}px`} class:isFlex>
<slot />
</div>
@@ -12,4 +13,8 @@
overflow-y: auto;
overflow-x: auto;
}
div.isFlex {
display: flex;
}
</style>