Support for 4K screens (#1572)

This commit is contained in:
Alexander Zinchuk 2021-12-10 18:33:29 +01:00
parent 7d829f8479
commit 6afcae9512
6 changed files with 22 additions and 21 deletions

View File

@ -11,7 +11,6 @@
right: 0; right: 0;
margin: 0 auto; margin: 0 auto;
width: 100%; width: 100%;
max-width: 1920px;
height: 100%; height: 100%;
z-index: var(--z-ui-loader-mask); z-index: var(--z-ui-loader-mask);
display: flex; display: flex;
@ -39,10 +38,6 @@
max-width: 33vw; max-width: 33vw;
} }
@media (min-width: 1920px) {
border-left: 1px solid var(--color-borders);
}
@media (max-width: 1275px) { @media (max-width: 1275px) {
flex: 2; flex: 2;
} }
@ -120,8 +115,6 @@
z-index: 1; z-index: 1;
height: 100%; height: 100%;
width: var(--right-column-width); width: var(--right-column-width);
min-width: 15.5rem;
max-width: 26.5rem;
border-left: 1px solid var(--color-borders); border-left: 1px solid var(--color-borders);
background: var(--color-background); background: var(--color-background);
} }

View File

@ -42,10 +42,6 @@
height: calc(var(--vh, 1vh) * 100); height: calc(var(--vh, 1vh) * 100);
} }
@media (min-width: 1920px) {
border-left: 1px solid var(--color-borders);
}
@media (min-width: 926px) { @media (min-width: 926px) {
max-width: 40vw; max-width: 40vw;
} }
@ -127,10 +123,6 @@
} }
#RightColumn { #RightColumn {
@media (min-width: 1920px) {
border-right: 1px solid var(--color-borders);
}
@media (max-width: 600px) { @media (max-width: 600px) {
height: calc(var(--vh, 1vh) * 100 + 1px); height: calc(var(--vh, 1vh) * 100 + 1px);
} }
@ -151,10 +143,6 @@
#MiddleColumn { #MiddleColumn {
border-left: 1px solid var(--color-borders); border-left: 1px solid var(--color-borders);
@media (min-width: 1920px) {
border-right: 1px solid var(--color-borders);
}
@media (max-width: 925px) { @media (max-width: 925px) {
max-width: none; max-width: none;
position: fixed; position: fixed;

View File

@ -68,6 +68,16 @@
transform: scale(0.67) !important; transform: scale(0.67) !important;
} }
} }
body.animation-level-2 #Main.right-column-open &::after {
@media screen and (min-width: 1921px) {
transform: scale(0.8) !important;
}
@media screen and (min-width: 2600px) {
transform: scale(0.95) !important;
}
}
} }
#MiddleColumn { #MiddleColumn {

View File

@ -19,6 +19,10 @@
--deleting-translate-x: -50%; --deleting-translate-x: -50%;
--select-message-scale: 0.9; --select-message-scale: 0.9;
@media (min-width: 1921px) {
--max-width: calc(30vw - 1rem);
}
&.is-swiped { &.is-swiped {
transform: translateX(-2.5rem) !important; transform: translateX(-2.5rem) !important;
} }
@ -106,6 +110,10 @@
--deleting-translate-x: 50%; --deleting-translate-x: 50%;
--color-text-green: var(--color-accent-own); --color-text-green: var(--color-accent-own);
@media (min-width: 1921px) {
--max-width: 30vw;
}
body.is-ios &, body.is-ios &,
body.is-macos & { body.is-macos & {
--color-background-own: var(--color-background-own-apple); --color-background-own: var(--color-background-own-apple);

View File

@ -165,6 +165,10 @@ $color-user-8: #faa774;
--right-column-width: 25vw; --right-column-width: 25vw;
} }
@media (min-width: 1921px) {
--messages-container-width: 50vw;
}
@media (max-width: 600px) { @media (max-width: 600px) {
--right-column-width: 100vw; --right-column-width: 100vw;
--symbol-menu-width: 100vw; --symbol-menu-width: 100vw;

View File

@ -55,8 +55,6 @@ body.cursor-ew-resize {
#root { #root {
height: 100%; height: 100%;
max-width: 1920px;
margin: 0 auto;
@media (max-width: 600px) { @media (max-width: 600px) {
height: calc(var(--vh, 1vh) * 100); height: calc(var(--vh, 1vh) * 100);
} }