@@ -7428,7 +7428,12 @@ class FastSearchCard extends HTMLElement {
74287428
74297429 // WICHTIG: Panel wird jetzt VOR den Timer-Controls eingefügt (oberste Position)
74307430 const timerControlDesign = container . querySelector ( '.timer-control-design' ) ;
7431- container . insertBefore ( timeSelectionContainer , timerControlDesign ) ;
7431+ const activeTimersSection = container . querySelector ( '.active-timers' ) ;
7432+ if ( activeTimersSection ) {
7433+ activeTimersSection . parentNode . insertBefore ( timeSelectionContainer , activeTimersSection . nextSibling ) ;
7434+ } else {
7435+ container . appendChild ( timeSelectionContainer ) ;
7436+ }
74327437 }
74337438
74347439 timeSelectionContainer . innerHTML = `
@@ -7477,6 +7482,25 @@ class FastSearchCard extends HTMLElement {
74777482
74787483 this . setupTimeSelectionEvents ( item , action , timeSelectionContainer , container ) ;
74797484 }
7485+
7486+ animateTimeSelectionContents ( timeSelectionContainer ) {
7487+ console . log ( '🎭 Animating time selection contents' ) ;
7488+
7489+ const animatableElements = timeSelectionContainer . querySelectorAll (
7490+ '.time-selection-header, .time-picker-container, .quick-time-buttons, .timer-create-actions'
7491+ ) ;
7492+
7493+ animatableElements . forEach ( ( el , index ) => {
7494+ el . style . opacity = '0' ;
7495+ el . style . transform = 'translateY(10px)' ;
7496+ el . style . transition = `all 0.3s cubic-bezier(0.16, 1, 0.3, 1) ${ index * 50 } ms` ;
7497+
7498+ requestAnimationFrame ( ( ) => {
7499+ el . style . opacity = '1' ;
7500+ el . style . transform = 'translateY(0)' ;
7501+ } ) ;
7502+ } ) ;
7503+ }
74807504
74817505 getActionLabel ( action ) {
74827506 const labels = {
@@ -7620,7 +7644,7 @@ class FastSearchCard extends HTMLElement {
76207644 const activeTimersSection = container . querySelector ( '.active-timers' ) ;
76217645 const timerControlDesign = container . querySelector ( '.timer-control-design' ) ;
76227646
7623- // 1. Zeitwahl-Panel ausblenden und entfernen
7647+ // 1. Zeitwahl-Panel ausblenden
76247648 const fadeOutTimeSelection = timeSelectionContainer ? timeSelectionContainer . animate ( [
76257649 { opacity : 1 , transform : 'translateY(0)' } ,
76267650 { opacity : 0 , transform : 'translateY(-20px)' }
@@ -7631,7 +7655,6 @@ class FastSearchCard extends HTMLElement {
76317655 } ) . finished : Promise . resolve ( ) ;
76327656
76337657 fadeOutTimeSelection . then ( ( ) => {
7634- // Panel entfernen
76357658 if ( timeSelectionContainer ) {
76367659 timeSelectionContainer . remove ( ) ;
76377660 }
0 commit comments