diff --git a/www/src/pages/index.astro b/www/src/pages/index.astro index 0896843..7971199 100644 --- a/www/src/pages/index.astro +++ b/www/src/pages/index.astro @@ -62,13 +62,13 @@ const urls = [
-
 {
+
{ const prefix = i === 0 ? labelPrefix(SECTIONS.guestbook, `?just=${SECTIONS.guestbook}`) : blankPrefix; const safeName = escapeHtml(e.name); const safeMessage = escapeHtml(e.message.replace(/\n/g, ' ')); const nameHtml = e.url ? `${safeName}` : `${safeName}`; - return `${prefix}${formatDate(e.createdAt)} ${nameHtml} ${safeMessage}`; -}).join('')} /> + return `${prefix}${formatDate(e.createdAt)} ${nameHtml} ${safeMessage}`; +}).join('')} />

diff --git a/www/src/styles/global.css b/www/src/styles/global.css index 7a1054d..070f590 100644 --- a/www/src/styles/global.css +++ b/www/src/styles/global.css @@ -103,11 +103,17 @@ section pre { } .guestbook-entries { - white-space: pre-wrap; + font-family: monospace; + white-space: pre; } .guestbook-entry { - display: block; + display: grid; + grid-template-columns: var(--meta-width) 1fr; +} + +.guestbook-entry > span:last-child { + white-space: normal; } .guestbook-form { @@ -119,8 +125,7 @@ html[data-compact] .list-meta { display: none; } html[data-compact] .guestbook-entry { - padding-left: 0 !important; - text-indent: 0 !important; + display: block; } html[data-compact] .guestbook-form { margin-left: 0 !important;