mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
banners: Fix banner grid layout for medium and small variants.
The banner grid layout for the medium and small variants has 4 rows, while the previously described `grid-template-areas` only had the placement information for the first 3 rows. This commit adds the spatial description of the banner elements in the the final row, fixing the alignment of the banner elements in the cases where there are no action buttons and only the banner label.
This commit is contained in:
@@ -660,13 +660,15 @@
|
||||
--banner-grid-template-rows-lg: 0.3125em auto 0.3125em; /* 5px at 16px/1em */
|
||||
--banner-grid-template-areas-md: ". . . . banner-close-button banner-close-button"
|
||||
". . banner-label banner-label banner-close-button banner-close-button"
|
||||
". banner-action-buttons banner-action-buttons banner-action-buttons . .";
|
||||
". banner-action-buttons banner-action-buttons banner-action-buttons banner-close-button banner-close-button"
|
||||
". . . . banner-close-button banner-close-button";
|
||||
--banner-grid-template-columns-md: var(--banner-horizontal-padding) 0
|
||||
minmax(auto, 1fr) 0 minmax(0, auto) var(--banner-horizontal-padding);
|
||||
--banner-grid-template-rows-md: 0.3125em auto auto 0.3125em; /* 5px at 16px/1em */
|
||||
--banner-grid-template-areas-sm: ". . . . banner-close-button banner-close-button"
|
||||
". . banner-label banner-label banner-close-button banner-close-button"
|
||||
". banner-action-buttons banner-action-buttons banner-action-buttons banner-action-buttons .";
|
||||
". banner-action-buttons banner-action-buttons banner-action-buttons banner-close-button banner-close-button"
|
||||
". . . . banner-close-button banner-close-button";
|
||||
|
||||
/* Popup banner related variables */
|
||||
--popup-banner-translate-y-distance: 100px;
|
||||
|
||||
Reference in New Issue
Block a user