feat: preview working and template delete is in, too

This commit is contained in:
2026-04-26 19:53:29 +02:00
parent 09a1dcede3
commit 92e5c2ccfd
15 changed files with 401 additions and 42 deletions

View File

@@ -53,7 +53,7 @@ version: 1
{% endif %}
<h2 class="post-title"><a href="{{ canonical_post_href }}">{{ post.title }}</a></h2>
{% endif %}
{{ post.content | markdown: post.id, post_data_json_by_id, canonical_post_path_by_slug, canonical_media_path_by_source_path, language, language_prefix }}
{{ post.content }}
</div>
{% endfor %}
</div>
@@ -68,7 +68,7 @@ version: 1
{% endif %}
<h2 class="post-title"><a href="{{ canonical_post_href }}">{{ post.title }}</a></h2>
{% endif %}
{{ post.content | markdown: post.id, post_data_json_by_id, canonical_post_path_by_slug, canonical_media_path_by_source_path, language, language_prefix }}
{{ post.content }}
</div>
{% endfor %}
{% endif %}

View File

@@ -26,7 +26,7 @@ version: 1
</div>
{% endif %}
<article class="single-post blog-post" data-template="single-post" data-pagefind-body>
<div class="post">{{ post.content | markdown: post.id, post_data_json_by_id, canonical_post_path_by_slug, canonical_media_path_by_source_path, language, language_prefix }}</div>
<div class="post">{{ post.content }}</div>
</article>
{% if backlinks.size > 0 %}
<div class="single-post-backlinks" aria-label="{{ 'render.backlinks.ariaLabel' | i18n: language }}">

View File

@@ -45,7 +45,7 @@
{% endif %}
<h2 class="post-title"><a href="{{ canonical_post_href }}">{{ post.title }}</a></h2>
{% endif %}
{{ post.content | markdown: post.id, post_data_json_by_id, canonical_post_path_by_slug, canonical_media_path_by_source_path, language, language_prefix }}
{{ post.content }}
</div>
{% endfor %}
</div>
@@ -60,7 +60,7 @@
{% endif %}
<h2 class="post-title"><a href="{{ canonical_post_href }}">{{ post.title }}</a></h2>
{% endif %}
{{ post.content | markdown: post.id, post_data_json_by_id, canonical_post_path_by_slug, canonical_media_path_by_source_path, language, language_prefix }}
{{ post.content }}
</div>
{% endfor %}
{% endif %}

View File

@@ -18,7 +18,7 @@
</div>
{% endif %}
<article class="single-post blog-post" data-template="single-post" data-pagefind-body>
<div class="post">{{ post.content | markdown: post.id, post_data_json_by_id, canonical_post_path_by_slug, canonical_media_path_by_source_path, language, language_prefix }}</div>
<div class="post">{{ post.content }}</div>
</article>
{% if backlinks.size > 0 %}
<div class="single-post-backlinks" aria-label="{{ 'render.backlinks.ariaLabel' | i18n: language }}">

View File

@@ -4246,9 +4246,11 @@ button svg * {
.chat-list-item {
display: flex;
align-items: center;
width: 100%;
padding: 10px 12px;
padding: 8px 12px;
border: none;
border-bottom: 1px solid var(--vscode-sideBar-border);
background: transparent;
color: inherit;
text-align: left;
@@ -4271,6 +4273,26 @@ button svg * {
gap: 2px;
}
.chat-item-open {
display: flex;
flex: 1;
min-width: 0;
padding: 0;
border: none;
background: transparent;
color: inherit;
text-align: left;
}
.chat-item-open:hover {
background: transparent;
}
.chat-item-open:focus-visible {
outline: 1px solid var(--vscode-focusBorder);
outline-offset: 2px;
}
.chat-item-title {
overflow: hidden;
text-overflow: ellipsis;
@@ -4282,6 +4304,27 @@ button svg * {
font-size: 12px;
}
.chat-item-delete {
background: transparent;
border: none;
color: var(--vscode-descriptionForeground);
cursor: pointer;
font-size: 16px;
line-height: 1;
padding: 0 4px;
opacity: 0;
transition: opacity 0.15s, color 0.15s;
}
.chat-list-item:hover .chat-item-delete,
.chat-list-item.active .chat-item-delete {
opacity: 1;
}
.chat-item-delete:hover {
color: var(--vscode-errorForeground);
}
.settings-nav-list {
display: flex;
flex-direction: column;