mirror of
https://github.com/PR0M3TH3AN/Artstr-Studio.git
synced 2026-10-27 08:40:39 +00:00
Remove layer hint text from disc preview
The layer hint was showing URLs and other internal data. The preview itself is what matters, so just removed the hint text entirely. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
1 parent
ec0cefdff5
commit
5c56a2d599
1 file changed
-11
@@ -5029,17 +5029,6 @@
|
||||
outer.appendChild(discWrap);
|
||||
container.appendChild(outer);
|
||||
|
||||
if (layers.length) {
|
||||
const info = document.createElement('p');
|
||||
info.className = 'hint';
|
||||
info.style.marginTop = '8px';
|
||||
info.textContent = `${layers.length} layer${layers.length>1?'s':''}: ` + layers.map(l => {
|
||||
if (l.type === 'image') return l.name || '[Image]';
|
||||
if (l.type === 'text') return l.name || (l.html||l.text||'').replace(/<[^>]+>/g,'').trim() || '[Text]';
|
||||
return l.name || `[${l.type}]`;
|
||||
}).join(', ');
|
||||
container.appendChild(info);
|
||||
}
|
||||
}
|
||||
|
||||
function renderTemplatePreviewDOM(container, payload) {
|
||||
|
||||
Reference in new issue
Block a user