mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-02-23 15:12:52 +08:00
increase action log modal widths
This commit is contained in:
parent
77329f4368
commit
697054f53a
@ -49,7 +49,7 @@ const prettyDiff = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Modal :title="props.title">
|
||||
<Modal :title="props.title" big>
|
||||
<template #default="{ on }">
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<div v-html="prettyDiff"></div>
|
||||
|
@ -13,7 +13,7 @@ const i18n = useI18n();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Modal :title="props.title">
|
||||
<Modal :title="props.title" big>
|
||||
<template #default="{ on }">
|
||||
<Markdown :raw="markdown"></Markdown>
|
||||
|
||||
|
@ -7,9 +7,11 @@ const props = withDefaults(
|
||||
defineProps<{
|
||||
title: string | TranslateResult;
|
||||
small?: boolean;
|
||||
big?: boolean;
|
||||
}>(),
|
||||
{
|
||||
small: true,
|
||||
big: false,
|
||||
}
|
||||
);
|
||||
|
||||
@ -36,7 +38,7 @@ defineExpose({
|
||||
<div class="flex items-center justify-center min-h-screen">
|
||||
<DialogOverlay class="fixed inset-0 bg-black opacity-30" />
|
||||
|
||||
<div class="relative mx-auto background-default rounded p-4" :class="small ? 'max-w-sm' : 'max-w-lg'">
|
||||
<div class="relative mx-auto background-default rounded p-4" :class="big ? 'max-w-80vw' : small ? 'max-w-sm' : 'max-w-lg'">
|
||||
<h2 class="font-bold text-xl mb-2">{{ props.title }}</h2>
|
||||
<slot :on="{ click: close }"></slot>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user