Skip to content

Commit

Permalink
Set max size for term listing images.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed May 30, 2024
1 parent 9064f64 commit 5f9cab4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lute/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,11 @@ input[type="checkbox"][disabled] + label {
}


.term-listing-image {
max-width: 250px;
max-height: 250px;
}

/** Term listing (/term) action dropdown. ********************/

.term-action-container {
Expand Down
2 changes: 1 addition & 1 deletion lute/templates/term/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
tx = tx.replaceAll("\r\n", "<br />");
let imgsrc = row[IMG_COL] ?? '';
if (imgsrc != '')
imgsrc = `<img style="margin-top: 5px;" src="${imgsrc}" />`;
imgsrc = `<img class="term-listing-image" style="margin-top: 5px;" src="${imgsrc}" />`;
let ret = [ tx, imgsrc ].filter((s) => s != '');
return ret.join('<br />');
};
Expand Down

0 comments on commit 5f9cab4

Please sign in to comment.