DataPage.vue 422 Bytes
Newer Older
abergavenny's avatar
abergavenny committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<script setup>
const props = defineProps(['stretch'])
</script>

<template>
  <div class="data-page shadow" :class="{ 'data-page__stretch': props.stretch }">
    <slot />
  </div>
</template>

<style scoped>
.data-page {
  overflow: hidden;
  background-color: hsl(var(--clr-content));
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
}

.data-page__stretch {
  flex: 1;
}
</style>