mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
Merge pull request #4061 from element-hq/subtitle-only
Show the subtitle of the app bar on small screens
This commit is contained in:
@@ -67,6 +67,29 @@
|
|||||||
"subtitle subtitle subtitle";
|
"subtitle subtitle subtitle";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hide everything but the subtitle in small windows */
|
||||||
|
@media (max-height: 450px) {
|
||||||
|
.bar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar:has(.subtitle) {
|
||||||
|
display: initial;
|
||||||
|
|
||||||
|
.title,
|
||||||
|
.primaryButton,
|
||||||
|
.secondaryButton {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
> header {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-rows: var(--cpd-space-5x) minmax(var(--cpd-space-5x), auto);
|
||||||
|
grid-template-areas: "." "subtitle";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.primaryButton {
|
.primaryButton {
|
||||||
grid-area: primaryButton;
|
grid-area: primaryButton;
|
||||||
justify-self: start;
|
justify-self: start;
|
||||||
@@ -141,4 +164,16 @@ body[data-platform="ios"] {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hide everything but the subtitle in small windows */
|
||||||
|
@media (max-height: 450px) {
|
||||||
|
.bar:has(.subtitle) > header {
|
||||||
|
grid-template-rows: var(--cpd-space-4x) minmax(var(--cpd-space-5x), auto);
|
||||||
|
grid-template-areas: "." "subtitle";
|
||||||
|
}
|
||||||
|
|
||||||
|
.subtitle {
|
||||||
|
color: var(--cpd-color-text-primary);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1424,7 +1424,7 @@ export function createCallViewModel$(
|
|||||||
windowMode$.pipe(
|
windowMode$.pipe(
|
||||||
switchMap((mode) => {
|
switchMap((mode) => {
|
||||||
// In small windows the header would be too obstructive
|
// In small windows the header would be too obstructive
|
||||||
if (mode === "pip" || mode === "flat") return of(false);
|
if (mode === "pip") return of(false);
|
||||||
// In edge-to-edge layouts, couple the visibility of the header
|
// In edge-to-edge layouts, couple the visibility of the header
|
||||||
// to that of the footer
|
// to that of the footer
|
||||||
return edgeToEdge$.pipe(
|
return edgeToEdge$.pipe(
|
||||||
|
|||||||
Reference in New Issue
Block a user