Limit textarea field heading tag level

This commit is contained in:
Paul Nicoué 2022-04-26 18:04:10 +02:00
parent d272a8752b
commit ae2282a76b
15 changed files with 75 additions and 46 deletions

View file

@ -33,7 +33,7 @@ function convertRemToPixels(rem) {
// Calculate navigation grid inner width
function calculateNavGridInnerWidth() {
if (root) {
if (root && navImage) {
let navGridGapProperty = window.getComputedStyle(root).getPropertyValue('--home-nav-gap');
let navGridGap = parseFloat(navGridGapProperty.slice(0, -3));
return navImage.getBoundingClientRect().width + (convertRemToPixels(navGridGap) * 2);