mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-02-23 15:12:52 +08:00
Fix changelog overflow, fix doc subpage (again)
This commit is contained in:
parent
9e84c06db3
commit
0cba1abaa3
@ -1,7 +1,7 @@
|
||||
import { ref, watch } from "vue";
|
||||
import { useInternalApi } from "~/composables/useApi";
|
||||
import { handleRequestError } from "~/composables/useErrorHandling";
|
||||
import { RouteLocationNormalizedLoaded, Router, useRoute, useRouter } from "vue-router";
|
||||
import { RouteLocationNormalizedLoaded, Router } from "vue-router";
|
||||
import { Context } from "vite-ssr/vue";
|
||||
import { Composer, VueMessageType } from "vue-i18n";
|
||||
import { HangarProject } from "hangar-internal";
|
||||
@ -19,7 +19,7 @@ export async function useProjectPage(
|
||||
handleRequestError(e, ctx, i18n)
|
||||
);
|
||||
if (!page) {
|
||||
await useRouter().push(useErrorRedirect(useRoute(), 404, "Not found"));
|
||||
await router.push(useErrorRedirect(route, 404, "Not found"));
|
||||
}
|
||||
|
||||
const editingPage = ref<boolean>(false);
|
||||
|
@ -148,7 +148,7 @@ async function restoreVersion() {
|
||||
|
||||
<template>
|
||||
<div v-if="projectVersion" class="flex <sm:flex-col flex-wrap md:flex-nowrap gap-4">
|
||||
<section class="basis-full md:basis-9/12 flex-grow">
|
||||
<section class="basis-full md:basis-9/12 flex-grow overflow-auto">
|
||||
<div class="flex flex-wrap gap-2 justify-between">
|
||||
<div>
|
||||
<h1 class="text-3xl sm:inline-flex items-center">
|
||||
@ -181,7 +181,7 @@ async function restoreVersion() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Card class="relative mt-4">
|
||||
<Card class="relative mt-4 erflow-clip overflow-hidden">
|
||||
<MarkdownEditor
|
||||
v-if="hasPerms(NamedPermission.EDIT_VERSION)"
|
||||
ref="editor"
|
||||
|
Loading…
Reference in New Issue
Block a user