2020-02-18 08:57:00 +01:00
|
|
|
<template>
|
|
|
|
<div>
|
2022-07-12 10:55:28 +02:00
|
|
|
<h2 class="text-2xl">{{ title }}</h2>
|
|
|
|
<div class="flex items-center mb-3 gap-1 eventMetadataBlock">
|
|
|
|
<slot name="icon"></slot>
|
2021-08-09 14:26:11 +02:00
|
|
|
<!-- Custom icons -->
|
2022-07-12 10:55:28 +02:00
|
|
|
<!-- <span
|
2021-08-09 14:26:11 +02:00
|
|
|
class="icon is-medium"
|
|
|
|
v-if="icon && icon.substring(0, 7) === 'mz:icon'"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
:src="`/img/${icon.substring(8)}_monochrome.svg`"
|
|
|
|
width="32"
|
|
|
|
height="32"
|
|
|
|
/>
|
|
|
|
</span>
|
2022-07-12 10:55:28 +02:00
|
|
|
<o-icon v-else-if="icon" :icon="icon" size="is-medium" /> -->
|
|
|
|
<div class="content-wrapper">
|
2020-02-18 08:57:00 +01:00
|
|
|
<slot></slot>
|
2021-11-02 19:47:54 +01:00
|
|
|
</div>
|
2020-02-18 08:57:00 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
2022-07-12 10:55:28 +02:00
|
|
|
<script lang="ts" setup>
|
|
|
|
defineProps<{
|
|
|
|
title: string;
|
|
|
|
}>();
|
2020-02-18 08:57:00 +01:00
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
div.eventMetadataBlock {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 1.75rem;
|
|
|
|
|
2021-11-02 19:47:54 +01:00
|
|
|
.content-wrapper {
|
2021-04-26 17:27:27 +02:00
|
|
|
overflow: hidden;
|
2021-11-07 14:59:20 +01:00
|
|
|
width: 100%;
|
2021-12-13 10:43:32 +01:00
|
|
|
max-width: calc(100vw - 32px - 20px);
|
2020-02-18 08:57:00 +01:00
|
|
|
|
|
|
|
&.padding-left {
|
2021-06-14 16:14:17 +02:00
|
|
|
padding: 0 20px;
|
2021-08-09 14:26:11 +02:00
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|