Merge branch 'preview-fixes' of https://github.com/the1812/Bilibili-Evolved into preview-fixes

This commit is contained in:
the1812 2023-01-19 21:16:21 +08:00
commit e51cb269e5

View File

@ -2,7 +2,16 @@
<div class="widgets-panel"> <div class="widgets-panel">
<div class="widgets-panel-header"><VIcon icon="widgets"></VIcon>功能</div> <div class="widgets-panel-header"><VIcon icon="widgets"></VIcon>功能</div>
<!-- <div class="widgets-loading" v-if="loading">加载中...</div> --> <!-- <div class="widgets-loading" v-if="loading">加载中...</div> -->
<VEmpty v-if="!loading && widgets.length === 0" class="widgets-empty"></VEmpty> <VEmpty v-if="!loading && widgets.length === 0" class="widgets-empty">
<div class="widgets-empty-content">
空空如也哦 =ω=<br />
可点此参考
<a href="https://bilibili-evolved-doc.vercel.app/docs/user/settings" target="_blank">
用户手册
</a>
以安装所需功能
</div>
</VEmpty>
<div class="widget-items"> <div class="widget-items">
<component <component
:is="w.component" :is="w.component"
@ -76,6 +85,8 @@ export default Vue.extend({
<style lang="scss"> <style lang="scss">
@import 'common'; @import 'common';
@import 'markdown';
.widgets-panel { .widgets-panel {
max-height: var(--panel-height); max-height: var(--panel-height);
min-height: 80px; min-height: 80px;
@ -111,6 +122,9 @@ export default Vue.extend({
.widgets-loading, .widgets-loading,
.widgets-empty { .widgets-empty {
padding: 12px 0; padding: 12px 0;
.widgets-empty-content {
@include markdown();
}
} }
.widget-items { .widget-items {
position: relative; position: relative;