File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 1414 /** @type {(args0: number) => void} */
1515 export let onDelete = () => {};
1616
17- let isLite = false ;
18- const screenWidthThreshold = 500 ;
19-
20- $: {
21- isLite = Viewport .Width <= screenWidthThreshold;
22- }
23-
2417 /**
2518 * @param {any} e
2619 * @param {number} idx
3831 <svelte:fragment slot =" thumbnail" >
3932 <div class =" image-gallery-container" >
4033 {#each files as file , idx (idx )}
41- <div class ={` gallery-item ${ isLite ? ' lite-gallery-item ' : ' ' } ` }>
34+ <div class ={` gallery-item ` }>
4235 <GalleryThumbnail style ="width: 100%; height: 100%; display: flex;" id ={idx }>
4336 <div class =" gallery-item-wrapper" >
4437 {#if needDelete }
Original file line number Diff line number Diff line change 88 width : 8em ;
99 height : 8em ;
1010
11+ @media (max-width : 500px ) {
12+ width : 5em ;
13+ height : 5em ;
14+ }
15+
1116 .gallery-item-wrapper {
1217 position : relative ;
1318
2732 }
2833 }
2934 }
30-
31- .lite-gallery-item {
32- width : 5em ;
33- height : 5em ;
34- }
3535}
3636
3737.svelte-lightbox-footer p {
You can’t perform that action at this time.
0 commit comments