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 14
14
registeredActionButtons = registeredActionButtons . filter ( ( btn ) => btn . name !== name ) ;
15
15
recalculateButtonsLayout ( ) ;
16
16
} ;
17
-
18
17
const recalculateButtonsLayout = ( ) => {
19
18
const sortedButtons = registeredActionButtons . sort ( ( a , b ) => a . priority - b . priority ) ;
20
19
const buttonsToRender = sortedButtons . filter ( ( el ) => {
39
38
selector . style . zIndex = buttonConfig . zIndex || 1040 ;
40
39
41
40
const bottomPosition = `${ index === 0 ? 2 : ( index + 1 ) * 3.2 } rem` ;
41
+
42
42
selector . style . bottom = bottomPosition ;
43
43
} ) ;
44
44
} ;
45
+
45
46
return {
46
47
registerButton,
47
48
unregisterButton,
48
49
recalculateButtonsLayout,
49
50
} ;
50
51
} ) ( ) ;
51
52
52
- window . ibexa = window . ibexa || { } ;
53
53
global . ibexa . adminUiConfig . quickActionManager = QuickActionManager ;
54
54
} ) ( window ) ;
Original file line number Diff line number Diff line change 4
4
'.ibexa-side-panel .ibexa-btn--close, .ibexa-side-panel .ibexa-side-panel__btn--cancel' ,
5
5
) ;
6
6
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 ( ) ;
8
8
const defaultBackdrop = new ibexa . core . Backdrop ( ) ;
9
9
const removeBackdrop = ( sidePanel ) => {
10
10
const backdrop = panelBackdrops . get ( sidePanel ) || defaultBackdrop ;
You can’t perform that action at this time.
0 commit comments