reset board zoom on view change, apply cleared search

This commit is contained in:
marlon-erler
2026-09-30 17:25:18 +02:00
parent 6079227356
commit 24610af08e
7 changed files with 244 additions and 227 deletions
+9
View File
@@ -21,6 +21,8 @@ export function HomePage(
) {
const greeting = React.createProxyState([settingsViewModel.username], ()=>coreViewModel.translations.homePage.greeting(settingsViewModel.username.value));
const isChatPlaceholderHidden = React.createProxyState([chatListViewModel.chatMatches, chatListViewModel.chatQuery], ()=>chatListViewModel.chatMatches.value.size > 0 || chatListViewModel.chatQuery.value != "");
// sections
const overviewSection = (
<div id="overview-section">
@@ -139,6 +141,13 @@ export function HomePage(
{NewItemEntry(coreViewModel, chatListViewModel.chatQuery, chatListViewModel.createChat)}
<span
class="secondary"
toggle:hidden={isChatPlaceholderHidden}
>
{coreViewModel.translations.homePage.noChatsPlaceholder}
</span>
<div
id="chat-grid"
children:append={[