classic view spacing
This commit is contained in:
parent
ba1f39a9ac
commit
cda1e7bbf4
2 changed files with 5 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { inject, onMounted, onUnmounted, ref } from "vue";
|
import { inject, onMounted, onUnmounted, ref } from "vue";
|
||||||
import { deviceKind } from "@/scripts/device-kind";
|
import { deviceKind } from "@/scripts/device-kind";
|
||||||
|
import { ui } from "@/config";
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
|
@ -34,6 +35,10 @@ const adjust = (rect: { width: number; height: number }) => {
|
||||||
margin = props.marginMin;
|
margin = props.marginMin;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ( ui === "classic" ) {
|
||||||
|
margin = 12;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
rect.width > (props.contentMax ?? 0) ||
|
rect.width > (props.contentMax ?? 0) ||
|
||||||
|
|
|
@ -210,10 +210,6 @@ provideMetadataReceiver((info) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (ui === "classic") {
|
|
||||||
provide("shouldSpacerMin", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
const menuIndicated = computed(() => {
|
const menuIndicated = computed(() => {
|
||||||
for (const def in navbarItemDef) {
|
for (const def in navbarItemDef) {
|
||||||
if (def === "notifications") continue; // 通知は下にボタンとして表示されてるから
|
if (def === "notifications") continue; // 通知は下にボタンとして表示されてるから
|
||||||
|
|
Loading…
Reference in a new issue