fix: compact map preview topbar
This commit is contained in:
parent
3bd55846a4
commit
15324c25f2
@ -1017,8 +1017,28 @@
|
|||||||
|
|
||||||
.location-map-topbar {
|
.location-map-topbar {
|
||||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||||
gap: 0.5rem;
|
gap: 0.45rem;
|
||||||
padding: 0.55rem 0.65rem;
|
padding: 0.42rem 0.55rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location-map-title {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 0.35rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location-map-title h1 {
|
||||||
|
flex: 0 1 auto;
|
||||||
|
min-width: 0;
|
||||||
|
font-size: 0.98rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location-map-title span {
|
||||||
|
display: inline;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
min-width: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
font-size: 0.78rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.location-map-back {
|
.location-map-back {
|
||||||
@ -1027,9 +1047,11 @@
|
|||||||
|
|
||||||
.location-map-status {
|
.location-map-status {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
max-width: 104px;
|
max-width: 90px;
|
||||||
justify-self: end;
|
justify-self: end;
|
||||||
padding: 0.28rem 0.45rem;
|
padding: 0.22rem 0.38rem;
|
||||||
|
font-size: 0.68rem;
|
||||||
|
line-height: 1.05;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
@ -1383,8 +1383,10 @@ test("mobile keeps draft preview status compact in the topbar", async ({ page })
|
|||||||
) {
|
) {
|
||||||
throw new Error("Mobile map controls layout was not measurable");
|
throw new Error("Mobile map controls layout was not measurable");
|
||||||
}
|
}
|
||||||
expect(topbarBox.height).toBeLessThanOrEqual(66);
|
expect(topbarBox.height).toBeLessThanOrEqual(56);
|
||||||
expect(backButtonBox.width).toBeLessThanOrEqual(42);
|
expect(backButtonBox.width).toBeLessThanOrEqual(42);
|
||||||
|
expect(titleBox.height).toBeLessThanOrEqual(24);
|
||||||
|
expect(statusBox.height).toBeLessThanOrEqual(24);
|
||||||
expect(statusBox.y).toBeLessThan(titleBox.y + titleBox.height);
|
expect(statusBox.y).toBeLessThan(titleBox.y + titleBox.height);
|
||||||
expect(statusBox.x).toBeGreaterThan(titleBox.x);
|
expect(statusBox.x).toBeGreaterThan(titleBox.x);
|
||||||
expect(toolbarBox.height).toBeLessThanOrEqual(64);
|
expect(toolbarBox.height).toBeLessThanOrEqual(64);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user