WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit dd2cd1d

Browse files
committed
feat: 更新 OnlyOffice 组件的主题名称;优化文件管理页面的列表渲染;调整抽屉和文件内容的圆角样式
1 parent 6dcbe8b commit dd2cd1d

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

resources/assets/js/components/OnlyOffice.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export default {
229229
"lang": lang,
230230
"user": await this.getUserData(),
231231
"customization": {
232-
"uiTheme": this.themeName === 'dark' ? "theme-dark" : "theme-classic-light",
232+
"uiTheme": this.themeName === 'dark' ? "theme-night" : "theme-white",
233233
"forcesave": true,
234234
"help": false,
235235
},

resources/assets/js/pages/manage/file.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@
4040
<span>{{$L('全部文件')}}</span>
4141
</li>
4242
<li v-if="searchKey">{{$L('搜索')}} "{{searchKey}}"</li>
43-
<li v-else v-for="item in navigator" :ref="`nav_${item.id}`" @click="browseFolder(item.id)">
44-
<i v-if="item.share" class="taskfont">&#xe63f;</i>
45-
<span :title="item.name">{{item.name}}</span>
46-
<span v-if="item.share && item.permission == 0" class="readonly">{{$L('只读')}}</span>
47-
</li>
43+
<template v-else>
44+
<li v-for="item in navigator" :ref="`nav_${item.id}`" @click="browseFolder(item.id)">
45+
<i v-if="item.share" class="taskfont">&#xe63f;</i>
46+
<span :title="item.name">{{item.name}}</span>
47+
<span v-if="item.share && item.permission == 0" class="readonly">{{$L('只读')}}</span>
48+
</li>
49+
</template>
4850
</ul>
4951
<template v-if="shearFirst">
5052
<Button :disabled="shearFirst.pid == pid" size="small" type="primary" @click="shearTo" :style="{marginLeft: showBtnText ? '12px' : 0}">

resources/assets/sass/components/drawer-overlay.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ body {
5151
--close-right: 0px;
5252
--close-color: #ffffff;
5353
--border-radius: 16px 16px 0 0;
54+
55+
.file-content,
56+
.file-preview {
57+
border-radius: 0;
58+
}
5459
}
5560

5661
&.approve-drawer {

resources/assets/sass/pages/common.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ body {
490490

491491
.ivu-drawer-right {
492492
.ivu-drawer-content {
493-
border-radius: 18px 0 0 18px;
493+
border-radius: 16px 0 0 16px;
494494

495495
.ivu-drawer-header {
496496
padding-top: 16px;
@@ -513,7 +513,7 @@ body {
513513

514514
.ivu-drawer-bottom {
515515
.ivu-drawer-content {
516-
border-radius: 18px 18px 0 0;
516+
border-radius: 16px 16px 0 0;
517517

518518
.ivu-drawer-close {
519519
top: -40px;

resources/assets/sass/pages/components/file-content.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
z-index: 1;
99
display: flex;
1010
flex-direction: column;
11-
border-radius: 18px 18px 0 0;
11+
border-radius: 16px 16px 0 0;
1212
overflow: hidden;
1313
transform: translateZ(0);
1414

0 commit comments

Comments
 (0)