feat: 文件浏览器支持图片预览并更新发布包
This commit is contained in:
@@ -7380,6 +7380,25 @@ textarea.codex-elicitation-input {
|
||||
background: var(--bg-primary);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
.file-browser-preview-image {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: auto;
|
||||
padding: 14px;
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
.file-browser-preview-image[hidden] {
|
||||
display: none;
|
||||
}
|
||||
.file-browser-preview-image img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.modal-field-row {
|
||||
@@ -7409,7 +7428,13 @@ textarea.codex-elicitation-input {
|
||||
order: 3;
|
||||
}
|
||||
.file-browser-layout {
|
||||
display: block;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.file-browser-list-pane,
|
||||
.file-browser-preview-pane {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
.file-browser-panel:not(.preview-active) .file-browser-preview-pane {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user