@layerswap/widget 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,8 +37,8 @@ export const ModalContent = (props) => {
|
|
|
37
37
|
if (!isOpen)
|
|
38
38
|
return null;
|
|
39
39
|
const modalElement = (_jsxs("div", { className: clsx("inset-0 z-50 bg-secondary-700 rounded-t-3xl sm:rounded-3xl flex flex-col overscroll-none", className, {
|
|
40
|
-
'fixed
|
|
41
|
-
'absolute': AppSettings.ThemeData?.enablePortal
|
|
40
|
+
'max-sm:fixed absolute': AppSettings.ThemeData?.enablePortal == true,
|
|
41
|
+
'absolute': !AppSettings.ThemeData?.enablePortal
|
|
42
42
|
}), children: [(header || showCloseButton) && (_jsx("div", { className: "w-full relative", children: _jsxs("div", { className: "flex items-center w-full text-left justify-between px-4 pt-2 pb-2 gap-x-2 sm:gap-x-1", children: [_jsx("div", { className: "flex-1 text-lg text-secondary-text font-semibold w-full flex justify-end", children: header }), showCloseButton && (_jsx(IconButton, { onClick: closeModal, className: "active:animate-press-down", icon: _jsx(X, { strokeWidth: 2 }) }))] }) })), _jsx("div", { className: "flex flex-col w-full h-full max-h-[90dvh] px-4 styled-scroll overflow-x-hidden overflow-y-auto relative pb-3", children: typeof children === 'function' ? children({ closeModal, shouldFocus }) : children })] }));
|
|
43
43
|
const widgetElement = document.getElementById('widget');
|
|
44
44
|
if (!widgetElement) {
|