Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/wwwroot/css/genpage.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ body {
object-fit: contain;
object-position: top left;
}
.current_image_sideblock > .current-image-img {
position: sticky;
top: 0.5rem;
vertical-align: top;
}
.current_image_batch {
display: inline-block;
overflow-x: hidden;
Expand Down
3 changes: 3 additions & 0 deletions src/wwwroot/js/genpage/gentab/currentimagehandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ function alignImageDataFormat() {
let curImg = getRequiredElementById('current_image');
let img = currentImageHelper.getCurrentImage();
if (!img) {
curImg.classList.remove('current_image_sideblock');
return;
}
let curImgContainer = currentImageHelper.getCurrentImageContainer();
Expand All @@ -724,6 +725,7 @@ function alignImageDataFormat() {
curImgContainer.style.maxWidth = `calc(min(100%, ${width}px))`;
if ((remainingWidth > 30 * 16 && format == 'auto') || format == 'side') {
curImg.classList.remove('current_image_small');
curImg.classList.add('current_image_sideblock');
extrasWrapper.style.display = 'inline-block';
extrasWrapper.classList.add('extras-wrapper-sideblock');
curImgContainer.style.maxHeight = `calc(max(15rem, 100%))`;
Expand All @@ -739,6 +741,7 @@ function alignImageDataFormat() {
}
else {
curImg.classList.add('current_image_small');
curImg.classList.remove('current_image_sideblock');
extrasWrapper.style.width = '100%';
extrasWrapper.style.maxWidth = `100%`;
extrasWrapper.style.display = 'block';
Expand Down
Loading