mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Adds some padding around lightbox zooming
This commit is contained in:
@@ -13,6 +13,10 @@
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
|
||||
&--zoom {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__main-container {
|
||||
@@ -75,7 +79,7 @@
|
||||
&__shadow-container {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
padding: 0 16px;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
visibility: hidden;
|
||||
@@ -107,22 +111,22 @@
|
||||
&__shadow-container &__object {
|
||||
max-height: 200%;
|
||||
max-width: 200%;
|
||||
padding: 0;
|
||||
padding: 10%;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
&__object--container--zoom &__object {
|
||||
max-height: 200%;
|
||||
max-width: 200%;
|
||||
padding: 10%;
|
||||
}
|
||||
|
||||
&__object--container--fill &__object {
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&__object--container--zoom &__object {
|
||||
max-height: 200%;
|
||||
max-width: 200%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&__unsupported {
|
||||
@include button-reset;
|
||||
flex-grow: 1;
|
||||
|
||||
@@ -489,7 +489,9 @@ export function Lightbox({
|
||||
return root
|
||||
? createPortal(
|
||||
<div
|
||||
className="Lightbox Lightbox__container"
|
||||
className={classNames('Lightbox Lightbox__container', {
|
||||
'Lightbox__container--zoom': zoomType === ZoomType.ZoomAndPan,
|
||||
})}
|
||||
onClick={(event: React.MouseEvent<HTMLDivElement>) => {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user