Skip to content

Commit 6489f17

Browse files
committed
Files other thank images only render a small thumbnail in browser editor
1 parent b85ba06 commit 6489f17

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

client/browser/BrowserEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default function BrowserEditor(props) {
8989
}
9090
return (props) => (
9191
<div className="browser-editor">
92-
<img src={props.file_info.thumbnail_url} />
92+
<img className="thumbnail" src={props.file_info.thumbnail_url} />
9393
<EditorForm {...props} />
9494
</div>
9595
);

client/scss/finder-browser.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ dialog {
242242

243243
img {
244244
width: 100%;
245+
&.thumbnail {
246+
max-width: 175px;
247+
}
245248
}
246249

247250
form {

0 commit comments

Comments
 (0)