Reduce default lighting a bit
This commit is contained in:
@@ -24,13 +24,14 @@ export default class extends Controller {
|
||||
const content = document.createElement(contentType);
|
||||
if (contentType === 'img') {
|
||||
content.src = event.content?.imgSrc;
|
||||
content.alt = event.content?.description.trim();
|
||||
content.classList.add('img-fluid');
|
||||
}
|
||||
|
||||
body.appendChild(content);
|
||||
|
||||
const description = document.createElement('p');
|
||||
description.textContent = event.content?.description;
|
||||
description.textContent = event.content?.description.trim();
|
||||
description.classList.add('py-3', 'my-2', 'fst-italic');
|
||||
|
||||
body.appendChild(description);
|
||||
|
||||
Reference in New Issue
Block a user