}>
diff --git a/src/components/_shared/Lightbox/Lightbox.module.scss b/src/components/_shared/Lightbox/Lightbox.module.scss
index 834c8750..67075ab9 100644
--- a/src/components/_shared/Lightbox/Lightbox.module.scss
+++ b/src/components/_shared/Lightbox/Lightbox.module.scss
@@ -17,7 +17,8 @@
}
.close {
- position: absolute;
+ position: fixed;
+ z-index: 1001;
top: 20px;
right: 40px;
font-size: 30px;
@@ -29,12 +30,13 @@
.zoomControls {
display: flex;
- position: absolute;
+ position: fixed;
bottom: 16px;
left: 50%;
height: 24px;
gap: 1rem;
transform: translateX(-50%);
+ z-index: 1001;
.control {
border-radius: 50%;
diff --git a/src/components/_shared/Lightbox/Lightbox.tsx b/src/components/_shared/Lightbox/Lightbox.tsx
index a90bf219..a9dee711 100644
--- a/src/components/_shared/Lightbox/Lightbox.tsx
+++ b/src/components/_shared/Lightbox/Lightbox.tsx
@@ -1,7 +1,8 @@
import { clsx } from 'clsx'
import styles from './Lightbox.module.scss'
-import { createSignal } from 'solid-js'
+import { createSignal, onCleanup, onMount } from 'solid-js'
import { Icon } from '../Icon'
+import { useEscKeyDownHandler } from '../../../utils/useEscKeyDownHandler'
type Props = {
class?: string
@@ -31,6 +32,8 @@ export const Lightbox = (props: Props) => {
transition: 'transform 0.3s ease'
})
+ useEscKeyDownHandler(closeLightbox)
+
return (
@@ -40,6 +43,9 @@ export const Lightbox = (props: Props) => {
+
diff --git a/src/pages/profile/Settings.module.scss b/src/pages/profile/Settings.module.scss
index 4553b827..50473218 100644
--- a/src/pages/profile/Settings.module.scss
+++ b/src/pages/profile/Settings.module.scss
@@ -234,9 +234,12 @@ h5 {
border: 1px solid var(--black-100);
cursor: pointer;
- img {
- width: 100%;
+ .userpicImage {
+ width: 180px;
+ height: 180px;
border-radius: 50%;
+ background-position: center;
+ background-size: contain;
}
&.hasControls {
@@ -254,6 +257,7 @@ h5 {
.control {
width: 40px;
height: 40px;
+ padding: 10px;
border-radius: 50%;
background: var(--background-color);
border: 1px solid var(--black-100);
diff --git a/src/pages/profile/profileSettings.page.tsx b/src/pages/profile/profileSettings.page.tsx
index 991892c7..9eef5ad6 100644
--- a/src/pages/profile/profileSettings.page.tsx
+++ b/src/pages/profile/profileSettings.page.tsx
@@ -24,6 +24,7 @@ import { Icon } from '../../components/_shared/Icon'
import { Popover } from '../../components/_shared/Popover'
import { Image } from '../../components/_shared/Image'
import { Loading } from '../../components/_shared/Loading'
+import { getImageUrl } from '../../utils/getImageUrl'
export const ProfileSettingsPage = () => {
const { t } = useLocalize()
@@ -150,7 +151,15 @@ export const ProfileSettingsPage = () => {
-
+
{(triggerRef: (el) => void) => (
From 1a55a5bdb8877da8fbcb853e448dad699aba1584 Mon Sep 17 00:00:00 2001
From: kvakazyambra
Date: Mon, 13 Nov 2023 21:28:21 +0300
Subject: [PATCH 2/3] Fixed error page style
---
src/styles/FourOuFour.module.scss | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/styles/FourOuFour.module.scss b/src/styles/FourOuFour.module.scss
index 09a87b79..683b078b 100644
--- a/src/styles/FourOuFour.module.scss
+++ b/src/styles/FourOuFour.module.scss
@@ -1,12 +1,11 @@
.errorPageWrapper {
height: 100vh;
- margin: -120px 0 -2em;
- padding-top: 100px;
+ padding-top: 60px;
}
.errorPage {
position: relative;
- top: 35%;
+ top: 37%;
transform: translateY(-50%);
.image-link:hover {
From 252d78b35deb2916617fbdb3395bdcd54a002623 Mon Sep 17 00:00:00 2001
From: kvakazyambra
Date: Mon, 13 Nov 2023 21:37:19 +0300
Subject: [PATCH 3/3] Fixed swiper slide height
---
src/components/Feed/ArticleCard/ArticleCard.module.scss | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/Feed/ArticleCard/ArticleCard.module.scss b/src/components/Feed/ArticleCard/ArticleCard.module.scss
index 660df8ca..9ffcc750 100644
--- a/src/components/Feed/ArticleCard/ArticleCard.module.scss
+++ b/src/components/Feed/ArticleCard/ArticleCard.module.scss
@@ -403,7 +403,6 @@
}
.shoutCardWithCover {
- aspect-ratio: 16/9;
width: 100%;
@include media-breakpoint-down(xl) {
@@ -413,6 +412,7 @@
}
swiper-slide & {
+ aspect-ratio: 16/9;
margin-bottom: 0;
@include media-breakpoint-down(lg) {