Improve gallery layout Closes #2907

061ed1db65dca2a6fc3b6a127a72c0bdb41b1aa7

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +5 -12Ignore whitespace
public/scripts/extensions/gallery/index.js+5 -5
@@ -26,9 +26,9 @@ let paginationVisiblePages = 10;
2626let paginationMaxLinesPerPage = 2;
2727let galleryMaxRows = 3;
2828
2929$('body#movingDivs').on('click', '.dragClose', function () {
3030 const relatedId = $(this).data('related-id'); // Get the ID of the related draggable
3131 $(`body#movingDivs > .draggable[id="${relatedId}"]`).remove(); // Remove the associated draggable
3232});
3333
3434const CUSTOM_GALLERY_REMOVED_EVENT = 'galleryRemoved';
@@ -290,7 +290,7 @@ function makeMovable(id = 'gallery') {
290290
291291 $('#dragGallery').css('display', 'block');
292292
293293 $('body#movingDivs').append(newElement);
294294
295295 loadMovingUIState();
296296 $(`.draggable[forChar="${id}"]`).css('display', 'block');
@@ -362,8 +362,8 @@ function makeDragImg(id, url) {
362362 }
363363 }
364364
365365 // Step 3: Attach it to the bodymovingDivs container
366366 document.bodygetElementById('movingDivs').appendChild(newElement);
367367
368368 // Step 4: Call dragElement and loadMovingUIState
369369 const appendedElement = document.getElementById(uniqueId);
public/style.css+0 -7
@@ -5386,13 +5386,6 @@ body:not(.movingUI) .drawer-content.maximized {
53865386
53875387/* Jank mobile support for gallery and future draggables */
53885388@media screen and (max-width: 1000px) {
5389- #gallery {
5390- display: block;
5391- width: 100vw;
5392- height: 100vh;
5393- z-index: 9999;
5394- }
5395-
53965389 .draggable {
53975390 display: block;
53985391 width: 100vw;