Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix modal in google chrome

kruzhambus7b8bda26a697
diff --git a/src/pages/Project/View/InteractiveMap.jsx b/src/pages/Project/View/InteractiveMap.jsx
index cc41609a1..99d0855a1 100644
--- a/src/pages/Project/View/InteractiveMap.jsx
+++ b/src/pages/Project/View/InteractiveMap.jsx
@@ -28,7 +28,7 @@ const InteractiveMap = ({ data, onClickCountry, total }) => {
const { t, i18n: { language } } = useTranslation('common')
return (
- <svg id='map' viewBox='0 0 1050 650'>
+ <svg id='map' viewBox='0 0 1050 650' className='w-full h-full'>
<g>
{_map(countriesList, (item, index) => {
const perc = (data[index] / total * 100) || 0
diff --git a/src/ui/Flatpicker.css b/src/ui/Flatpicker.css
index 9cce9fba8..a4b2dab51 100644
--- a/src/ui/Flatpicker.css
+++ b/src/ui/Flatpicker.css
@@ -2,11 +2,6 @@
position: absolute !important;
}
-.flatpicker-custom .flatpickr-calendar.inline {
- z-index: 9999;
- position: absolute;
-}
-
.flatpicker-custom .flatpickr-calendar.static.open {
left: -310px;
top: 30px;
diff --git a/src/ui/Modal.jsx b/src/ui/Modal.jsx
index 3aec40bc1..481ea5bd5 100644
--- a/src/ui/Modal.jsx
+++ b/src/ui/Modal.jsx
@@ -40,7 +40,7 @@ const Modal = ({
>
<div className={cx('inline-block align-bottom bg-white dark:bg-gray-800 rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:px-5 sm:py-4', {
'sm:max-w-lg sm:w-full': size === 'regular',
- 'sm:max-w-5xl sm:w-full': size === 'large',
+ 'max-w-5xl w-full': size === 'large',
})}>
<div className='sm:flex sm:items-start'>
{type === 'success' && (
@@ -63,7 +63,7 @@ const Modal = ({
<ExclamationIcon className='h-6 w-6 text-amber-600' aria-hidden='true' />
</div>
)}
- <div className='mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left'>
+ <div className='mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full'>
{title && (
<Dialog.Title as='h3' className='text-lg leading-6 font-medium text-gray-900 dark:text-gray-50'>
{title}