From 9162321c3c751ae6f897bf7394443a5e125c6b2d Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Sat, 25 May 2024 15:29:56 -0400 Subject: [PATCH] feat: avoid layout shift in init --- modules/ext.tabberNeue.init/ext.tabberNeue.init.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/ext.tabberNeue.init/ext.tabberNeue.init.less b/modules/ext.tabberNeue.init/ext.tabberNeue.init.less index dc0f8ba..5b84b6f 100644 --- a/modules/ext.tabberNeue.init/ext.tabberNeue.init.less +++ b/modules/ext.tabberNeue.init/ext.tabberNeue.init.less @@ -36,6 +36,14 @@ } } + /** + * Avoid layout shift by assigning the grid property early on + * Because display:block does not take into account of bottom margin of the content + */ + .tabber__section { + display: grid; + } + /** * Hide all other panels * All panels are stacked vertically initially