Skip to content

Commit

Permalink
Layout: Fix minimum vertical height on short pages.
Browse files Browse the repository at this point in the history
This code assumes a margin for the admin bar, header, and local nav (from when they were all sticky). The only margin on the container now is the admin bar, causing an extra white space below the footer on very short pages. This fixes the issue by calculating the height correctly.
  • Loading branch information
ryelle committed Feb 27, 2024
1 parent 9143b15 commit 00997d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.wp-site-blocks {
display: flex;
flex-direction: column;
min-height: calc(100vh - var(--wp-global-header-offset, 0px) - var(--local-header-height, 0px));
min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
overflow-wrap: break-word;

> main,
Expand Down

0 comments on commit 00997d5

Please sign in to comment.