Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Refine mobile navigation and sidebar feedback https://github.com/siyuan-note/siyuan/issues/14542 https://github.com/siyuan-note/siyuan/issues/19011

Daniel9973fdc93100
diff --git a/app/src/assets/scss/main/_mobile.scss b/app/src/assets/scss/main/_mobile.scss
index 218ed9b11a..5c78081dbd 100644
--- a/app/src/assets/scss/main/_mobile.scss
+++ b/app/src/assets/scss/main/_mobile.scss
@@ -350,14 +350,14 @@ body.mobile-keyboard--open {
.counter {
box-sizing: border-box;
flex-shrink: 0;
- min-width: 24px;
- height: 20px;
+ min-width: 18px;
+ height: 18px;
margin-left: 0;
margin-inline-start: 2px;
- padding: 0 6px;
- font-size: 12px;
+ padding: 0 4px;
+ font-size: 11px;
font-variant-numeric: tabular-nums;
- line-height: 20px;
+ line-height: 18px;
text-align: end;
unicode-bidi: isolate;
white-space: nowrap;
@@ -396,7 +396,7 @@ body.mobile-keyboard--open {
box-sizing: border-box;
display: flex;
align-items: flex-start;
- width: min(88%, 420px);
+ width: min(calc(100% - 32px), calc(var(--mobile-bottom-bar-height) * 6));
height: var(--mobile-bottom-bar-height);
margin: 0 auto;
padding: 0;
@@ -427,6 +427,7 @@ body.mobile-keyboard--open {
border-radius: var(--b3-border-radius);
color: var(--b3-theme-on-surface-light);
background: transparent;
+ transition: color 80ms ease, background-color 80ms ease, transform 80ms ease;
-webkit-tap-highlight-color: transparent;
> svg {
@@ -435,11 +436,16 @@ body.mobile-keyboard--open {
flex-shrink: 0;
}
- &:active,
&:focus-visible {
color: var(--b3-theme-on-surface);
}
+ &:active:not([disabled]) {
+ color: var(--b3-theme-on-surface);
+ background-color: var(--b3-list-hover);
+ transform: scale(.92);
+ }
+
&[disabled] {
opacity: .38;
}
@@ -654,6 +660,7 @@ body.mobile-topbar--merged {
z-index: 7;
transform: translateX(-100vw);
transition: transform .15s cubic-bezier(0, 0, .2, 1) 0ms;
+ will-change: transform;
&--all {
transform: translateX(100vw);
@@ -665,7 +672,6 @@ body.mobile-topbar--merged {
&--swiping {
transition: none;
- will-change: transform;
}
// 窄屏下 Dock 图标过多时可横向滚动,关闭按钮固定在工具栏末端始终可触达