Merge pull request #10705 from overleaf/ii-dashboard-layout-shift

[web] Prevent layout shift

GitOrigin-RevId: 6f1e2a5b81994bf3c101b83980cc74e7b60ccabf
This commit is contained in:
Jessica Lawshe 2022-11-30 10:03:13 -06:00 committed by Copybot
parent 8537a37020
commit 997f89c6d6

View file

@ -807,7 +807,7 @@
}
.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius)
when(@is-new-css = true) {
padding: @padding-vertical - @border-size @padding-horizontal;
padding: @padding-vertical - round(@border-size) @padding-horizontal;
font-size: @font-size;
line-height: @line-height;
border-radius: @border-radius;