Changeset 3457281
- Timestamp:
- 02/09/2026 04:50:54 PM (8 weeks ago)
- Location:
- luxe-gallery/trunk
- Files:
-
- 2 added
- 3 edited
-
languages/luxe-gallery-de_DE_formal.mo (added)
-
languages/luxe-gallery-de_DE_formal.po (added)
-
public/css/luxe-gallery-public.css (modified) (5 diffs)
-
public/js/luxe-gallery-public.js (modified) (3 diffs)
-
public/partials/gallery-display.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
luxe-gallery/trunk/public/css/luxe-gallery-public.css
r3457266 r3457281 114 114 .luxe-slider-pagination { 115 115 position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); 116 display: flex; gap: 6px; z-index: 5; 116 display: flex; z-index: 5; align-items: center; 117 min-height: 12px; 117 118 } 118 119 … … 121 122 border: 1px solid rgba(0, 0, 0, 0.4); 122 123 background: rgba(255, 255, 255, 0.5); cursor: pointer; padding: 0; 123 transition: background 0.2s, transform 0.2s, opacity 0.2s; 124 margin: 0 3px; 125 transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, 126 background 0.2s, transform 0.2s, margin 0.25s ease, border-width 0.25s ease; 127 flex-shrink: 0; overflow: hidden; box-sizing: border-box; 124 128 } 125 129 .luxe-slider-dot.active { background: #fff; transform: scale(1.25); border-color: rgba(0, 0, 0, 0.6); } 126 .luxe-slider-dot.luxe-dot-hidden { display: none; } 130 .luxe-slider-dot.luxe-dot-hidden { 131 width: 0; height: 0; opacity: 0; border-width: 0; 132 margin: 0; padding: 0; pointer-events: none; 133 } 127 134 128 135 .luxe-gallery-mobile-slider .show-all-photos-mobile { … … 146 153 147 154 .back-to-grid-view { 148 position: absolute; top: calc(50% - 40px); left: 0;155 position: absolute; top: 50%; left: 4px; transform: translateY(-50%); 149 156 background: #f0f0f1; border: 1px solid #ddd; border-radius: 50%; 150 157 width: 40px; height: 40px; cursor: pointer; 151 display: flex; align-items: center; justify-content: center; padding: 0; z-index: 10 01;158 display: flex; align-items: center; justify-content: center; padding: 0; z-index: 101; 152 159 } 153 160 .back-to-grid-view svg { color: #333; } … … 157 164 /* Category Navigation */ 158 165 .luxe-gallery-category-nav { 166 position: relative; 159 167 background: #fff; border-bottom: 1px solid #ddd; 160 margin-bottom: 32px; z-index: 100; padding-top: 16px;168 margin-bottom: 16px; z-index: 100; padding-top: 16px; 161 169 } 162 170 … … 181 189 182 190 /* Category Sections */ 183 .luxe-gallery-category-section { padding-top: 48px; margin-top: -24px; }184 .luxe-gallery-category-section:first-of-type { padding-top: 24px; }191 .luxe-gallery-category-section { padding-top: 32px; } 192 .luxe-gallery-category-section:first-of-type { padding-top: 8px; } 185 193 .luxe-gallery-category-section h2, .luxe-gallery-category-section h3, 186 194 .luxe-gallery-category-section h4, .luxe-gallery-category-section h5, -
luxe-gallery/trunk/public/js/luxe-gallery-public.js
r3457266 r3457281 19 19 this.loop = options.loop !== false; 20 20 21 this._isNavigating = false; 21 22 this.buildPagination(); 22 23 this.bindEvents(); … … 36 37 bindEvents() { 37 38 const observer = new IntersectionObserver((entries) => { 39 if (this._isNavigating) return; 38 40 for (const entry of entries) { 39 41 if (entry.isIntersecting && entry.intersectionRatio > 0.5) { 40 this.currentIndex = this.slides.indexOf(entry.target); 41 this.updatePagination(); 42 const idx = this.slides.indexOf(entry.target); 43 if (idx !== -1 && idx !== this.currentIndex) { 44 this.currentIndex = idx; 45 this.updatePagination(); 46 } 42 47 } 43 48 } … … 55 60 if (index < 0) index = this.loop ? this.slides.length - 1 : 0; 56 61 if (index >= this.slides.length) index = this.loop ? 0 : this.slides.length - 1; 57 this.slides[index]?.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' }); 62 this._isNavigating = true; 63 clearTimeout(this._navTimer); 58 64 this.currentIndex = index; 59 65 this.updatePagination(); 66 this.slides[index]?.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' }); 67 this._navTimer = setTimeout(() => { this._isNavigating = false; }, 400); 60 68 } 61 69 -
luxe-gallery/trunk/public/partials/gallery-display.php
r3456001 r3457281 31 31 32 32 // Shortcode overrides. 33 $luxe_show_image_count = isset( $settings['show_image_count'] ) ? $settings['show_image_count'] : Luxe_Gallery_Settings::get_option( 'show_image_count', true );33 $luxe_show_image_count = isset( $settings['show_image_count'] ) ? $settings['show_image_count'] : Luxe_Gallery_Settings::get_option( 'show_image_count', false ); 34 34 $luxe_show_title = isset( $settings['show_title'] ) ? $settings['show_title'] : false; 35 35 $luxe_title_tag = isset( $settings['title_tag'] ) ? $settings['title_tag'] : 'h2';
Note: See TracChangeset
for help on using the changeset viewer.