This commit is contained in:
Philipinho
2026-03-03 00:08:20 +00:00
parent 628b08339a
commit 9f4728e279
3 changed files with 7 additions and 3 deletions
@@ -128,6 +128,10 @@
margin-top: 0; margin-top: 0;
} }
.react-renderer.node-callout div[style*="white-space: inherit;"] > :last-child {
margin-bottom: 0;
}
.react-renderer.node-callout + .react-renderer.node-callout { .react-renderer.node-callout + .react-renderer.node-callout {
margin-top: 0.75em; margin-top: 0.75em;
} }
@@ -531,7 +531,7 @@ export class ImportAttachmentService {
// Post-process DOM elements to add file sizes after uploads complete // Post-process DOM elements to add file sizes after uploads complete
// This avoids blocking file operations during initial DOM processing // This avoids blocking file operations during initial DOM processing
const elementsNeedingSize = $('[data-attachment-id]:not([data-size])'); const elementsNeedingSize = $('[data-attachment-id]:not([data-attachment-size])');
for (const element of elementsNeedingSize.toArray()) { for (const element of elementsNeedingSize.toArray()) {
const $el = $(element); const $el = $(element);
const attachmentId = $el.attr('data-attachment-id'); const attachmentId = $el.attr('data-attachment-id');
@@ -545,7 +545,7 @@ export class ImportAttachmentService {
if (processedEntry) { if (processedEntry) {
try { try {
const stat = await fs.stat(processedEntry.abs); const stat = await fs.stat(processedEntry.abs);
$el.attr('data-size', stat.size.toString()); $el.attr('data-attachment-size', stat.size.toString());
} catch (error) { } catch (error) {
this.logger.debug( this.logger.debug(
`Could not get size for ${processedEntry.abs}:`, `Could not get size for ${processedEntry.abs}:`,