Fix Selection-Toolbar: Position oben statt ueber Header, direktes Button-Binding

Toolbar wird jetzt am oberen Bildschirmrand angezeigt (Desktop),
damit sie nicht mehr den Header/Nav ueberlagert. Auf Mobile
bleibt sie unterhalb des Headers. Cancel/Download-Buttons nutzen
direktes Binding auf $toolbar statt Delegation auf document.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Kroonk
2026-04-16 23:29:28 +02:00
parent f4c106bd19
commit 75a5a596c5
6 changed files with 10 additions and 16 deletions

View File

@@ -394,8 +394,8 @@
updateToolbar();
}
// Download-Button
$(document).on('click', '#sel-download', function() {
// Download-Button (direkt gebunden, nicht delegiert)
$toolbar.on('click', '#sel-download', function() {
if (selectedImages.length === 0) return;
$.ajax({
url: '/api/download/selected',
@@ -440,8 +440,8 @@
});
});
// Abbrechen-Button
$(document).on('click', '#sel-cancel', function() {
// Abbrechen-Button (direkt gebunden)
$toolbar.on('click', '#sel-cancel', function() {
selectionActive = false;
$('body').removeClass('selection-mode');
$toolbar.removeClass('visible');

File diff suppressed because one or more lines are too long