This commit is contained in:
oneao committed 2026-04-28 22:14:22 +08:00
1 parent c6d55b0f46
commit 3464bc7907
1 file changed
+11 -3
+11 -3
View File
@@ -38,9 +38,10 @@
flex: 1; flex: 1;
min-height: 0; min-height: 0;
padding: 10px; padding: 10px;
overflow: auto; overflow-y: auto;
overflow-x: hidden;
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px; gap: 10px;
align-content: flex-start; align-content: flex-start;
box-sizing: border-box; box-sizing: border-box;
@@ -148,6 +149,7 @@
.g3-file-item { .g3-file-item {
flex: none; flex: none;
width: 100%; width: 100%;
min-width: 0;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
border: 1px solid #eef0f2; border: 1px solid #eef0f2;
@@ -171,8 +173,11 @@
} }
.g3-file-preview .g3-file-img { .g3-file-preview .g3-file-img {
display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: fill;
min-width: 0;
} }
.g3-file-preview svg { .g3-file-preview svg {
@@ -182,11 +187,14 @@
.g3-file-preview .g3-img-container { .g3-file-preview .g3-img-container {
width: 100%; width: 100%;
max-width: 100%;
min-width: 0;
height: 100%; height: 100%;
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
overflow: hidden;
} }
.g3-file-preview .g3-img-container.is-error .g3-img-error { .g3-file-preview .g3-img-container.is-error .g3-img-error {
@@ -475,7 +483,7 @@
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 250px; margin-left: 12px;
} }
.g3-preview-content { .g3-preview-content {