Skip to content

Commit

Permalink
fix: ui panels content height temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Behairi committed Oct 10, 2023
1 parent b3beb43 commit a2140f8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/src/components/UiPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
class="elevation-1 rounded ma-1"
:style="`
background: ${$vuetify.theme.currentTheme.background};
max-height:50%
`"
>
<v-expansion-panel>
<v-expansion-panel-header>
{{ title }}
</v-expansion-panel-header>
<v-expansion-panel-content >
<v-expansion-panel-content
:style="`height: calc((var(--vh, 1vh) * 100) - ${$vuetify.application.top
+ $vuetify.application.footer +(48 * 4)}px )`" >
<slot></slot>
</v-expansion-panel-content>
</v-expansion-panel>
Expand Down Expand Up @@ -49,14 +50,18 @@ export default {
},
data: () => ({
showOverlay: false,
siblingsCount: 1,
}),
created() {
this.siblingsCount = this.$parent.$children.length;
},
};
</script>

<style scoped>
div {
width: 100%;
overflow: hidden;
overflow: scroll;
pointer-events: all;
}
.overlay {
Expand Down
26 changes: 26 additions & 0 deletions app/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,22 @@
class="pointerEvents">
</eox-layercontrol>
</UiPanel>
<UiPanel
left
title="Filter"
>
<IndicatorFiltersPanel />
</UiPanel>
<UiPanel
left
title="Layers"
>
<eox-layercontrol
for="#centerMap"
layerTitle="name"
class="pointerEvents">
</eox-layercontrol>
</UiPanel>
</template>
<template v-slot:right>

Expand All @@ -198,6 +214,16 @@
>
<IndicatorFiltersPanel />
</UiPanel>
<UiPanel
left
title="Layers"
>
<eox-layercontrol
for="#centerMap"
layerTitle="name"
class="pointerEvents">
</eox-layercontrol>
</UiPanel>

</template>
</UiPanelLayout>
Expand Down

0 comments on commit a2140f8

Please sign in to comment.