eyecandy
This commit is contained in:
@@ -104,18 +104,22 @@ function renderFeed(items, showIdentity = true) {
|
||||
|
||||
const comment = document.createElement('div');
|
||||
comment.className = 'comment';
|
||||
comment.textContent = item.comment || 'No comment provided';
|
||||
comment.textContent = item.comment || '';
|
||||
|
||||
const entryMeta = document.createElement('div');
|
||||
entryMeta.className = 'entry-meta';
|
||||
|
||||
if (item.tags?.length) {
|
||||
const tags = document.createElement('div');
|
||||
tags.className = 'entry-tags';
|
||||
tags.textContent = item.tags.join(' ');
|
||||
article.appendChild(tags);
|
||||
tags.textContent = item.tags.join(' ');
|
||||
entryMeta.appendChild(tags);
|
||||
}
|
||||
|
||||
const meta = document.createElement('div');
|
||||
meta.className = 'meta';
|
||||
meta.textContent = formatDate(item.created_at);
|
||||
entryMeta.appendChild(meta);
|
||||
|
||||
if (item.is_owner && !showIdentity) {
|
||||
const actions = document.createElement('div');
|
||||
@@ -161,7 +165,7 @@ function renderFeed(items, showIdentity = true) {
|
||||
}
|
||||
article.appendChild(title);
|
||||
article.appendChild(comment);
|
||||
article.appendChild(meta);
|
||||
article.appendChild(entryMeta);
|
||||
feedEl.appendChild(article);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -632,7 +632,7 @@ button:disabled {
|
||||
.link-item h2 {
|
||||
margin: 0 0 8px;
|
||||
color: var(--text);
|
||||
font-size: 1.2rem;
|
||||
font-size: 1rem;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
@@ -641,7 +641,7 @@ button:disabled {
|
||||
align-items: center;
|
||||
float: right;
|
||||
gap: 12px;
|
||||
margin: 0 0 12px 18px;
|
||||
margin: 0 0 2px 8px;
|
||||
}
|
||||
|
||||
.user-link {
|
||||
@@ -694,18 +694,27 @@ button:disabled {
|
||||
}
|
||||
|
||||
.meta {
|
||||
margin-top: 4px;
|
||||
margin-left: auto;
|
||||
color: var(--muted);
|
||||
font-size: 0.82rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.entry-tags {
|
||||
margin-top: 12px;
|
||||
color: var(--mauve);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.entry-meta {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
clear: both;
|
||||
gap: 16px;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.container {
|
||||
padding: 0 14px;
|
||||
@@ -759,6 +768,16 @@ button:disabled {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.entry-meta {
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 12px;
|
||||
}
|
||||
|
||||
.meta {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.toolbar label,
|
||||
select,
|
||||
input,
|
||||
|
||||
Reference in New Issue
Block a user