fix: header style (#59)

This commit is contained in:
Dream Hunter
2024-01-14 00:17:05 +08:00
committed by GitHub
parent 97a1f0a968
commit ef2acb2e64

View File

@@ -175,8 +175,8 @@ const menuOptionsMobile = [
<template>
<div>
<n-layout-header>
<h2 v-if="!isMobile" style="display: inline-block; margin-left: 10px;">{{ t('title') }}</h2>
<div>
<h2 v-if="!isMobile" style="display: inline-block; margin-left: 10px;">{{ t('title') }}</h2>
<n-menu v-if="!isMobile" mode="horizontal" :options="menuOptions" />
<n-menu v-else mode="horizontal" :options="menuOptionsMobile" />
</div>