Skip to content

Commit 5345430

Browse files
committed
Add resizable functionality to panels and update styles
1 parent 386163d commit 5345430

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

src/assets/sass/global.sass

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,15 @@ body.body--dark
3030
.sesame-table-td-highlight
3131
color: $primary
3232
font-weight: bold
33+
34+
35+
.outer-ne-resize
36+
resize: vertical
37+
overflow: auto
38+
39+
40+
.inner-ne-resize,
41+
.outer-ne-resize
42+
transform: rotateX(180deg)
43+
height: 100%
44+
width: 100%

src/components/2pan/index.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ q-splitter(
9898
slot(name="right-panel-content-before")
9999
slot(name="right-panel-content-after")
100100
q-expansion-item.bg-blue-grey-10(v-if='debug' label='Debug' icon='mdi-bug' dark dense)
101-
q-card.overflow-auto.bg-blue-grey-8.text-white(:style='{maxHeight: "250px", height: "250px"}')
102-
q-card-section.q-pa-xs
103-
pre.q-ma-none(v-html='JSON.stringify(target, null, 2)')
101+
.outer-ne-resize(:style='{minHeight: "250px", height: "250px"}')
102+
q-card.overflow-auto.bg-blue-grey-8.text-white.inner-ne-resize
103+
q-card-section.q-pa-xs
104+
pre.q-ma-none(v-html='JSON.stringify(target, null, 2)')
104105
</template>
105106

106107
<script lang="ts" setup>
@@ -396,3 +397,6 @@ onMounted(async () => {
396397
}
397398
})
398399
</script>
400+
401+
<style>
402+
</style>

0 commit comments

Comments
 (0)