scenario edited

This commit is contained in:
Burak Civan 2022-11-14 12:09:09 +03:00
parent cb1ac3e789
commit 2b4c88495f

View File

@ -447,7 +447,7 @@ document.querySelectorAll('[data-page-title-first]').forEach((first) => {
let title_truncate = first.querySelector('[data-title-truncate]'); let title_truncate = first.querySelector('[data-title-truncate]');
if (title_truncate !== null) { if (title_truncate !== null) {
if (first.clientWidth < title_truncate.clientWidth) { if (first.clientWidth < title_truncate.clientWidth && second.clientHeight > 0) {
// added specific width styling for truncate text // added specific width styling for truncate text
title_truncate.style.width = first.clientWidth + 'px'; title_truncate.style.width = first.clientWidth + 'px';
let subtract = title_truncate.clientWidth - 40; let subtract = title_truncate.clientWidth - 40;