From 50236cabb094edda9f5fe7c5f79acab5a397e4bc Mon Sep 17 00:00:00 2001 From: Devon22 Date: Thu, 29 Jan 2026 18:12:02 +0800 Subject: [PATCH] 3.0.6 --- manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/GridView.ts | 11 ++++++++++- styles.css | 7 ++++++- versions.json | 2 +- 6 files changed, 21 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index ef9be98..96f9eab 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "gridexplorer", "name": "GridExplorer", - "version": "3.0.5", + "version": "3.0.6", "minAppVersion": "1.1.0", "description": "Browse note files in a grid view.", "author": "Devon22", diff --git a/package-lock.json b/package-lock.json index afc805f..5842611 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "gridexplorer", - "version": "3.0.5", + "version": "3.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gridexplorer", - "version": "3.0.5", + "version": "3.0.6", "license": "MIT", "dependencies": { "@esbuild/linux-x64": "0.17.3", diff --git a/package.json b/package.json index 128bbd1..5e6ff3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gridexplorer", - "version": "3.0.5", + "version": "3.0.6", "description": "Browse note files in a grid view.", "main": "main.js", "scripts": { diff --git a/src/GridView.ts b/src/GridView.ts index 4a9857f..9f43ffc 100644 --- a/src/GridView.ts +++ b/src/GridView.ts @@ -1991,6 +1991,11 @@ export class GridView extends ItemView { // 在網格視圖中直接顯示筆記 async showNoteInGrid(file: TFile) { + // 隱藏移動端導航欄 + // const mobileNavbar = document.querySelector('.mobile-navbar') as HTMLElement; + // if (mobileNavbar) { + // mobileNavbar.style.display = 'none'; + // } // 關閉之前的筆記顯示 if (this.isShowingNote) { @@ -2112,7 +2117,11 @@ export class GridView extends ItemView { hideNoteInGrid() { if (!this.isShowingNote) return; - //const gridContainer = this.containerEl.querySelector('.ge-grid-container'); + // 顯示移動端導航欄 + // const mobileNavbar = document.querySelector('.mobile-navbar') as HTMLElement; + // if (mobileNavbar) { + // mobileNavbar.style.display = ''; + // } if (this.noteViewContainer) { // 移除鍵盤事件監聽器 diff --git a/styles.css b/styles.css index fecd9cf..958ee9c 100644 --- a/styles.css +++ b/styles.css @@ -2133,6 +2133,11 @@ a.ge-current-folder:hover { border-radius: 0 var(--radius-s) var(--radius-s) 0; } +/* 隱藏複製按鈕 */ +.ge-note-content .copy-code-button { + display: none; +} + .ge-note-content ul, .ge-note-content ol { margin: 1em 0; @@ -2701,6 +2706,6 @@ a.ge-current-folder:hover { padding-bottom: calc(var(--view-bottom-spacing) + var(--size-4-3)) !important; } -.is-phone .mod-root .ge-note-view-container { +.is-phone .ge-note-content { padding-bottom: var(--view-bottom-spacing) !important; } \ No newline at end of file diff --git a/versions.json b/versions.json index af5f1e4..a079e7e 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "3.0.5": "1.1.0" + "3.0.6": "1.1.0" } \ No newline at end of file