This commit is contained in:
Devon22 2026-02-09 17:22:10 +08:00
parent 511c56fa19
commit 8fabb3d9bf
5 changed files with 16 additions and 15 deletions

View file

@ -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",

4
package-lock.json generated
View file

@ -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",

View file

@ -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": {

View file

@ -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));
}
}

View file

@ -1,3 +1,3 @@
{
"2.0.3": "1.1.0"
"2.0.4": "1.1.0"
}