Skip to content

Commit b732cb8

Browse files
committed
Update: 新主题(待完善)
1. 临时兼容多端,不完善
1 parent 3b7c009 commit b732cb8

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

package/App.vue

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<script setup lang="ts">
1111
import NanoContainer from '@NanoUI/NanoContainer/index.vue';
12-
import { nextTick, onBeforeUnmount, onMounted, ref } from 'vue';
12+
import { onBeforeUnmount, onMounted, ref } from 'vue';
1313
import { controllerStore } from '@store/controller';
1414
1515
const ctl = controllerStore();
@@ -53,18 +53,8 @@
5353
ctl.hideHeaderTopNav = false;
5454
ctl.hidePaths = false;
5555
ctl.hideCopyright = false;
56-
} else if (clientWidth >= 768) {
57-
htmlEl.style.setProperty('font-size', '12px');
58-
ctl.allowDrag = false;
59-
ctl.articleFullscreen = false;
60-
ctl.hideLeftSidebar = false;
61-
ctl.hideRightSidebar = true;
62-
ctl.hideActionBar = true;
63-
ctl.hideHeaderTopNav = true;
64-
ctl.hidePaths = true;
65-
ctl.hideCopyright = true;
6656
} else {
67-
htmlEl.style.setProperty('font-size', '10px');
57+
htmlEl.style.setProperty('font-size', '12px');
6858
ctl.allowDrag = false;
6959
ctl.articleFullscreen = true;
7060
ctl.hideLeftSidebar = true;

package/components/NanoMain/index.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@
4848
width: '100%',
4949
left: 0
5050
};
51-
}
52-
if (ctl.hideRightSidebar) {
53-
return {
54-
width: 'calc(100% - var(--action-bar-size) - var(--sidebar-left-size))',
55-
left: 'calc(var(--action-bar-size) + var(--sidebar-left-size))'
56-
};
5751
} else {
5852
return {
5953
width: 'calc(100% - var(--action-bar-size) * 2 - var(--sidebar-left-size) - var(--sidebar-right-size))',

0 commit comments

Comments
 (0)