File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/bundle/Resources/public/js/scripts Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414 registeredActionButtons = registeredActionButtons . filter ( ( btn ) => btn . name !== name ) ;
1515 recalculateButtonsLayout ( ) ;
1616 } ;
17-
1817 const recalculateButtonsLayout = ( ) => {
1918 const sortedButtons = registeredActionButtons . sort ( ( a , b ) => a . priority - b . priority ) ;
2019 const buttonsToRender = sortedButtons . filter ( ( el ) => {
3938 selector . style . zIndex = buttonConfig . zIndex || 1040 ;
4039
4140 const bottomPosition = `${ index === 0 ? 2 : ( index + 1 ) * 3.2 } rem` ;
41+
4242 selector . style . bottom = bottomPosition ;
4343 } ) ;
4444 } ;
45+
4546 return {
4647 registerButton,
4748 unregisterButton,
4849 recalculateButtonsLayout,
4950 } ;
5051 } ) ( ) ;
5152
52- window . ibexa = window . ibexa || { } ;
5353 global . ibexa . adminUiConfig . quickActionManager = QuickActionManager ;
5454} ) ( window ) ;
Original file line number Diff line number Diff line change 44 '.ibexa-side-panel .ibexa-btn--close, .ibexa-side-panel .ibexa-side-panel__btn--cancel' ,
55 ) ;
66 const sidePanelTriggers = [ ...doc . querySelectorAll ( '.ibexa-side-panel-trigger' ) ] ;
7- const panelBackdrops = new Map ( ) ; // Mapa przechowująca powiązania panel -> backdrop
7+ const panelBackdrops = new Map ( ) ;
88 const defaultBackdrop = new ibexa . core . Backdrop ( ) ;
99 const removeBackdrop = ( sidePanel ) => {
1010 const backdrop = panelBackdrops . get ( sidePanel ) || defaultBackdrop ;
You can’t perform that action at this time.
0 commit comments