File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565}
6666
6767/* Move delete button confirmation to the right side */
68- .ReactModal__Content [style *= "width: 300px" ] {
69- /* 300px (popup width)
68+ /* TODO: override the props of the ModalWithArrow component instead */
69+ .ReactModal__Content [style *= "width: 290px" ] {
70+ /* 290px (popup width)
7071 + 25px (padding)
7172 + 70px (sprite selector item width)
7273 + 25px (padding) */
73- margin-left : 420px !important ;
74- }
75- [class *= "delete-confirmation-prompt_arrow-container_" ] {
76- order : -1 ;
74+ margin-left : 410px !important ;
75+ }
76+ [class *= "modal-with-arrow_arrow_" ][style *= "width: 14px" ] {
77+ /* 70px (sprite selector item width)
78+ + 50px (padding)
79+ + 4px (popup borders)
80+ - 14px (arrow width) */
81+ margin-left : 110px ;
7782 transform : scaleX (-1 );
7883}
7984
Original file line number Diff line number Diff line change 1+ [class *= "modal-with-arrow_arrow_" ][style *= "width: 14px" ],
12[class *= "delete-confirmation-prompt_" ] {
23 visibility : hidden;
34}
Original file line number Diff line number Diff line change 11export default async ( { addon, console } ) => {
22 document . body . addEventListener ( "pointerup" , ( ) => {
33 setTimeout ( ( ) => {
4- const confirmButton = document . querySelector ( "[class*='delete-confirmation-prompt_ok-button_']" ) ;
4+ const confirmButton = document . querySelector (
5+ "[class*='delete-confirmation-prompt_body_'] [class*='confirmation-prompt_confirm-button_']"
6+ ) ;
57 if ( ! addon . self . disabled && confirmButton ) confirmButton . click ( ) ;
68 } , 0 ) ;
79 } ) ;
You can’t perform that action at this time.
0 commit comments