An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve the mobile marketplace detail view https://github.com/siyuan-note/siyuan/issues/17151
Daniela82f91906ae7
diff --git a/app/src/assets/scss/business/_config.scss b/app/src/assets/scss/business/_config.scssindex d4d34a2918..fcaef8e51f 100644--- a/app/src/assets/scss/business/_config.scss+++ b/app/src/assets/scss/business/_config.scss@@ -636,6 +636,10 @@padding: 16px 16px 16px 0;.item {+ &__body {+ display: contents;+ }+&__side {text-align: center;width: 260px;diff --git a/app/src/assets/scss/main/_mobile.scss b/app/src/assets/scss/main/_mobile.scssindex 66da4981f6..8c18f8f929 100644--- a/app/src/assets/scss/main/_mobile.scss+++ b/app/src/assets/scss/main/_mobile.scss@@ -596,12 +596,20 @@&__readme {border-radius: 0;flex-direction: column;- overflow-y: auto;- overscroll-behavior: contain;+ overflow: hidden;padding: 0;- -webkit-overflow-scrolling: touch;.item {+ &__body {+ display: block;+ flex: 1;+ min-height: 0;+ overflow-y: auto;+ overscroll-behavior: contain;+ width: 100%;+ -webkit-overflow-scrolling: touch;+ }+&__header {background-color: var(--b3-theme-background);box-sizing: border-box;@@ -636,6 +644,16 @@&__actions {padding: 8px 0 16px;++ &--mobile {+ background-color: var(--b3-theme-background);+ box-shadow: 0 -1px 0 var(--b3-theme-surface-lighter);+ box-sizing: border-box;+ flex-shrink: 0;+ padding: 8px max(16px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));+ width: 100%;+ z-index: 2;+ }}&__main {@@ -650,16 +668,6 @@&__preview {height: min(50vw, 180px);margin-bottom: 16px;-- &.item__preview--fullscreen {- border-radius: 0;- height: 100%;- inset: 0;- margin: 0;- position: fixed;- width: 100%;- z-index: 8;- }}&__readme {diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.tsindex ce64a54e38..70efe10790 100644--- a/app/src/config/bazaar.ts+++ b/app/src/config/bazaar.ts@@ -48,6 +48,7 @@ import {sortBazaarPackagesByRating,} from "../util/bazaarPackage";import {Dialog} from "../dialog";+import {previewImages} from "../protyle/preview/image";interface IBazaarMountSnapshot {element: HTMLElement;@@ -1177,7 +1178,11 @@ type="checkbox"><svg class="b3-list-item__graphic"><use xlink:href="#iconLeft"></use></svg><span class="b3-list-item__text ft__breakword">${navTitles[bazaarType]}</span></div>`;- readmeElement.innerHTML = `${isMobile() ? backHeaderHTML : ""}<div class="item__side" data-from="${from}" data-name="${escapeAttr(displayData.name)}" data-package-type="${bazaarType}" data-repourl="${escapeAttr(resourceData.repoURL)}" data-progress-id="${escapeAttr(available?.repoURL || resourceData.repoURL)}">+ const readmeActionsHTML = `<div class="item__actions${isMobile() ? " item__actions--mobile" : ""}">+ ${bazaar._genReadmeActionsHTML(bazaarType, installed, available)}+ ${bazaar._genReadmeUpdateButtonHTML(available, bazaarType, Boolean(installed))}+ </div>`;+ readmeElement.innerHTML = `${isMobile() ? backHeaderHTML : ""}<div class="item__body"><div class="item__side" data-from="${from}" data-name="${escapeAttr(displayData.name)}" data-package-type="${bazaarType}" data-repourl="${escapeAttr(resourceData.repoURL)}" data-progress-id="${escapeAttr(available?.repoURL || resourceData.repoURL)}">${isMobile() ? "" : backHeaderHTML}<div class="fn__flex-1"><img class="item__img" src="${displayData.iconURL}" loading="lazy" onerror="this.src='/stage/images/icon.png'">@@ -1202,13 +1207,10 @@ type="checkbox"></div><div class="fn__hr--b"></div></div>- <div class="item__actions">- ${bazaar._genReadmeActionsHTML(bazaarType, installed, available)}- ${bazaar._genReadmeUpdateButtonHTML(available, bazaarType, Boolean(installed))}- </div>+ ${isMobile() ? "" : readmeActionsHTML}</div><div class="item__main">- <div class="item__preview" style="background-image: url(${displayData.previewURL})"></div>+ <div class="item__preview" data-preview-url="${escapeAttr(displayData.previewURL)}" style="background-image: url(${displayData.previewURL})"></div><div class="b3-typography${displayData.preferredDesc ? "" : " fn__none"}"><blockquote><p>@@ -1219,7 +1221,7 @@ type="checkbox"><div class="item__readme b3-typography b3-typography--default"><img data-type="img-loading" style="height: 64px;width: 100%;padding: 16px 0;" src="/stage/loading-pure.svg"></div>-</div>`;+</div></div>${isMobile() ? readmeActionsHTML : ""}`;const isInstalledReadme = from === "downloaded";if (isInstalledReadme) {const mdElement = readmeElement.querySelector(".item__readme");@@ -2686,7 +2688,14 @@ type="checkbox">event.stopPropagation();break;} else if (target.classList.contains("item__preview")) {- target.classList.toggle("item__preview--fullscreen");+ if (isMobile()) {+ const previewURL = target.dataset.previewUrl;+ if (previewURL) {+ previewImages([previewURL], previewURL);+ }+ } else {+ target.classList.toggle("item__preview--fullscreen");+ }event.preventDefault();event.stopPropagation();break;