mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-15 17:18:49 +02:00
fix:#72 commit hash responsive design
This commit is contained in:
@ -17,10 +17,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref } from "vue";
|
||||
import { computed, inject, Ref, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import OverlayPanel from "primevue/overlaypanel";
|
||||
const { t } = useI18n({ useScope: "global" });
|
||||
const mobilePage = inject("mobilePage") as Ref<boolean>;
|
||||
|
||||
const commit = computed(() => ([
|
||||
{
|
||||
@ -48,8 +49,8 @@ const commitOverlay = ref<OverlayPanel | null>(null);
|
||||
@click="commitOverlay?.toggle($event)"
|
||||
>
|
||||
</Button>
|
||||
<OverlayPanel class="overlay-panel" ref="commitOverlay" :showCloseIcon="true" :dismissable="true">
|
||||
<div class="flex flex-column w-25rem">
|
||||
<OverlayPanel class="overlay-panel" ref="commitOverlay" :showCloseIcon="!mobilePage" :dismissable="true">
|
||||
<div class="flex flex-column" :class="mobilePage ? 'w-full' : 'w-25rem'">
|
||||
<b>{{ t('footer.commitInfo.title') }}</b>
|
||||
<p>{{ t('footer.commitInfo.description') }}</p>
|
||||
<DataTable
|
||||
@ -57,6 +58,7 @@ const commitOverlay = ref<OverlayPanel | null>(null);
|
||||
:value="commit"
|
||||
:paginator="false"
|
||||
:rows="commit.length"
|
||||
:size="mobilePage ? 'small' : 'large'"
|
||||
class="w-full"
|
||||
>
|
||||
<Column field="name" :header="t('footer.commitInfo.component')" />
|
||||
|
Reference in New Issue
Block a user