saif-ellafi/foundryvtt-window-controls

Change the content of a minimized header

kamil-merdanov opened this issue · 1 comments

Hello and thank you for your module!
Is it possible to change the text displayed as title for a minimized window?
Title-header
So instead of Folder-name + Journal name it will show only the latter.

I've managed to change the width of the element, but was unable to change the content.

It is a very annoying problem, so I fixed it on my side. Until the issue is fixed properly, you can replace the method curateTitle() in windowControls.js by this one. It will strip the folder name from the minimized window.

static curateTitle(title) {
const curatedTitle = title.replace("[Token] ", "~ ").replace("Table Configuration: ", "");
const titleAndFolder = curatedTitle.split(':');
return titleAndFolder[titleAndFolder.length-1].trim();
}