diff --git a/manifest.json b/manifest.json index fb697d8..81224b6 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "mediaviewer", "name": "Media Viewer", - "version": "2.0.3", + "version": "2.0.4", "minAppVersion": "1.1.0", "description": "View and manage media files within your notes.", "author": "Devon22", diff --git a/package-lock.json b/package-lock.json index bd2b84a..841be33 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mediaviewer", - "version": "2.0.3", + "version": "2.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mediaviewer", - "version": "2.0.3", + "version": "2.0.4", "license": "MIT", "dependencies": { "@esbuild/linux-x64": "0.17.3", diff --git a/package.json b/package.json index 61666d0..8c51e77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mediaviewer", - "version": "2.0.3", + "version": "2.0.4", "description": "This is a sample plugin for Obsidian (https://obsidian.md)", "main": "main.js", "scripts": { diff --git a/styles.css b/styles.css index a19775f..53a449c 100644 --- a/styles.css +++ b/styles.css @@ -508,7 +508,6 @@ display: flex; align-items: center; justify-content: center; - padding: 15px; height: 100%; } @@ -520,7 +519,6 @@ flex-direction: column; align-items: center; justify-content: space-between; - gap: 10px; } .mvgb-note-thumbnail-image { @@ -531,20 +529,20 @@ } .mvgb-note-icon { - margin: auto 0; - transition: transform 0.2s; - flex-grow: 1; + height: calc(100% - 50px); + /* 佔用與圖片相同的預留空間 */ + width: 100%; display: flex; align-items: center; - margin-bottom: 10px; + justify-content: center; transition: transform 0.2s; + flex-shrink: 0; } .mvgb-note-title { - font-size: 14px; + font-size: 0.85em; color: var(--text-normal); overflow: hidden; - display: flex; align-items: center; min-height: 1.5em; text-overflow: ellipsis; @@ -553,7 +551,10 @@ -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; - margin-top: auto; + margin: auto; + padding: 1px 7px; + line-height: 1.4; + max-height: 2.8em; } .mvgb-invalid-link { @@ -788,4 +789,4 @@ width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); -} \ No newline at end of file +} diff --git a/versions.json b/versions.json index 1f0a2bc..c807953 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "2.0.3": "1.1.0" + "2.0.4": "1.1.0" } \ No newline at end of file