scenario edited
This commit is contained in:
parent
cb1ac3e789
commit
2b4c88495f
2
public/akaunting-js/generalAction.js
vendored
2
public/akaunting-js/generalAction.js
vendored
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user