feat(web): drop redundant preview pill from topbar
This commit is contained in:
1 parent
6e2910af62
commit
bc4655c143
3 files changed
+1
-6
No files matched your search
@@ -158,9 +158,6 @@ async function boot() {
|
||||
};
|
||||
if (data?.preview) {
|
||||
banner.hidden = false;
|
||||
document.querySelectorAll(".topbar-preview").forEach((element) => {
|
||||
element.hidden = false;
|
||||
});
|
||||
}
|
||||
} catch {
|
||||
toast("无法连接看板服务", "error");
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
<div class="topbar-actions">
|
||||
<a class="topbar-hint topbar-auth" href="/login" hidden>登录</a>
|
||||
<span class="topbar-links" data-topbar-links hidden></span>
|
||||
<span class="topbar-hint topbar-preview" hidden>预览</span>
|
||||
</div>
|
||||
</header>
|
||||
<div class="preview-banner" id="preview-banner" hidden>预览数据 · 不影响真实数据库</div>
|
||||
@@ -42,7 +41,6 @@
|
||||
<div class="topbar-actions">
|
||||
<a class="topbar-hint topbar-auth" href="/login" hidden>登录</a>
|
||||
<span class="topbar-links" data-topbar-links hidden></span>
|
||||
<span class="topbar-hint topbar-preview" hidden>预览</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nav-items" id="nav-items"></div>
|
||||
|
||||
Reference in new issue
Block a user