Skip to content

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

:bug: Fix mobile history list height https://github.com/siyuan-note/siyuan/issues/19537

Daniela3ea81e6fdf3
diff --git a/app/src/assets/scss/util/_responsive.scss b/app/src/assets/scss/util/_responsive.scss
index e95c70c09f..f58b294750 100644
--- a/app/src/assets/scss/util/_responsive.scss
+++ b/app/src/assets/scss/util/_responsive.scss
@@ -147,6 +147,19 @@
&__panel {
flex-direction: column;
+ &.history__panel--empty {
+ & > .history__side {
+ flex: 1;
+ height: auto;
+ border-bottom: 0;
+ }
+
+ & > .history__resize,
+ & > .fn__flex-column {
+ display: none;
+ }
+ }
+
& > .fn__flex-column {
min-height: auto;
border-radius: var(--b3-border-radius-b);
diff --git a/app/src/history/history.ts b/app/src/history/history.ts
index da3d8d246d..696fdd13bf 100644
--- a/app/src/history/history.ts
+++ b/app/src/history/history.ts
@@ -100,6 +100,7 @@ const renderDoc = (element: HTMLElement, currentPage: number) => {
assetElement.classList.add("fn__none");
mdElement.classList.add("fn__none");
docElement.classList.add("fn__none");
+ element.querySelector(".history__panel").classList.add("history__panel--empty");
if (typeElement.value === "2" || typeElement.value === "4") {
notebookElement.setAttribute("disabled", "disabled");
if (window.siyuan.storage[Constants.LOCAL_HISTORY].type !== 2 && window.siyuan.storage[Constants.LOCAL_HISTORY].type !== 4) {
@@ -937,6 +938,7 @@ const bindEvent = (app: App, element: Element, dialog?: Dialog) => {
event.preventDefault();
break;
} else if (target.classList.contains("b3-list-item") && ["assets", "doc", "av"].includes(type)) {
+ firstPanelElement.querySelector(".history__panel").classList.remove("history__panel--empty");
const dataPath = target.getAttribute("data-path");
if (type === "assets") {
assetElement.classList.remove("fn__none");