fix(FN-2513): anchor mobile toasts below header
- Move mobile .toast-container positioning from bottom offset to top offset beneath the fixed header - Tokenize horizontal toast spacing on mobile using var(--space-sm) instead of hardcoded pixel values - Update utility mobile CSS regression test expectations for top anchoring and auto bottom behavior
This commit is contained in:
@@ -233,7 +233,10 @@ describe("Utility component mobile adaptations", () => {
|
||||
expectMobileRule(css, ".settings-layout", "flex-direction: column;");
|
||||
expectMobileRule(css, ".agent-board", "grid-template-columns: 1fr;");
|
||||
expectMobileRule(css, ".active-agents-grid", "grid-template-columns: 1fr;");
|
||||
expectMobileRule(css, ".toast-container", "bottom: calc(var(--mobile-nav-height, 44px) + var(--executor-footer-height, 0px) + var(--standalone-bottom-gap, 0px) + env(safe-area-inset-bottom, 0px) + var(--space-lg) + var(--space-2xl));");
|
||||
expectMobileRule(css, ".toast-container", "top: calc(var(--header-height, 57px) + env(safe-area-inset-top, 0px) + var(--space-sm));");
|
||||
expectMobileRule(css, ".toast-container", "bottom: auto;");
|
||||
expectMobileRule(css, ".toast-container", "right: var(--space-sm);");
|
||||
expectMobileRule(css, ".toast-container", "left: var(--space-sm);");
|
||||
expectMobileRule(css, ".background-tasks-indicator__popover", "position: fixed;");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2187,9 +2187,10 @@ input[type="range"]:focus-visible {
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.toast-container {
|
||||
bottom: calc(var(--mobile-nav-height, 44px) + var(--executor-footer-height, 0px) + var(--standalone-bottom-gap, 0px) + env(safe-area-inset-bottom, 0px) + var(--space-lg) + var(--space-2xl));
|
||||
right: 8px;
|
||||
left: 8px;
|
||||
top: calc(var(--header-height, 57px) + env(safe-area-inset-top, 0px) + var(--space-sm));
|
||||
bottom: auto;
|
||||
right: var(--space-sm);
|
||||
left: var(--space-sm);
|
||||
}
|
||||
|
||||
.toast {
|
||||
|
||||
Reference in New Issue
Block a user