Home: bez paska „Szuka w” z listą modułów

Zostaje dolny rząd z wyborem modelu, Nowa rozmowa i Wyślij. Usunięta też reguła CSS ukrywająca na telefonie pierwszy element paska - inaczej po zmianie chowałaby wybór modelu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_016uwxqL6AphKDyHPDToUMin
This commit is contained in:
tobayah
2026-11-17 22:17:44 +01:00
co-authored by Claude Opus 5.5
parent 8cbd97084b
commit 89b0a4104a
2 changed files with 2 additions and 10 deletions
+1 -3
View File
@@ -108,13 +108,12 @@
}
.home-send:hover { background: var(--at-primary-hover); }
.home-send.stop { background: var(--at-text); color: var(--at-canvas); }
/* The scope, the model and the send button: the composer's bottom row, inside the card. */
/* The model and the send button: the composer's bottom row, inside the card. */
.home-scope {
display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px;
font-size: 12px; color: var(--at-text-secondary);
}
.home-tools { margin-left: auto; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.home-scope-mod { display: inline-flex; align-items: center; gap: 6px; color: var(--at-text); }
/* The model picker sits at the end of the scope bar; the answer is a quiet card, plain text only. */
.home-model { display: inline-flex; align-items: center; gap: 8px; }
.home-model select { min-height: 32px; padding: 2px 8px; font-size: 12px; max-width: 260px; }
@@ -281,7 +280,6 @@ pre.diff .del { color: var(--err); background: var(--err-bg); }
.home-label { margin-top: 28px; }
.home-box { margin-top: 22px; }
.home-input { border-radius: 20px; padding-left: 14px; }
.home-scope > span:first-child { display: none; }
.home-tools { width: 100%; flex-wrap: nowrap; }
.home-model { flex: 1; min-width: 0; }
.home-model > span:first-child { display: none; }
+1 -7
View File
@@ -392,7 +392,6 @@ const I18N = {
'Szukaj spraw, umów, plików i kancelarii…': 'Search matters, contracts, files and law firms…',
'Szukaj we wszystkich modułach': 'Search every module',
'Szukaj': 'Search',
'Szuka w:': 'Searches:',
'Wpisz co najmniej dwa znaki.': 'Type at least two characters.',
'Szukam…': 'Searching…',
'Nic nie znaleziono.': 'Nothing found.',
@@ -1455,7 +1454,6 @@ function homeModelChange(sel) {
$('homeQ').placeholder = _tr(ask ? 'Zapytaj asystenta albo szukaj w modułach…' : 'Szukaj spraw, umów, plików i kancelarii…');
$('homeQ').setAttribute('aria-label', _tr(ask ? 'Zapytaj asystenta' : 'Szukaj we wszystkich modułach'));
document.querySelector('.home-send').setAttribute('aria-label', _tr(ask ? 'Wyślij' : 'Szukaj'));
document.querySelectorAll('[data-chat-only]').forEach((e) => e.classList.toggle('hidden', !ask));
$('homeModelIcon').innerHTML = familyIcon(sel.value);
saveModelPick(sel.value);
}
@@ -4337,9 +4335,6 @@ async function viewHome(C) {
<select id="homeModel" onchange="homeModelChange(this)">${modelOptions(models, picked, 'Tylko szukaj')}</select></label>`
: gw && gw.configured ? `<label class="home-model"><span>Model AI</span>
<select id="homeModel" disabled><option value="">Serwer modeli wyłączony</option></select></label>` : '';
// Insider is read by the assistant only (the plain search has no Insider part), so its chip shows with a model.
const law = state.launcher.find((m) => m.slug === 'insider' && m.has_access);
const lawChip = law ? `<span class="home-scope-mod${picked ? '' : ' hidden'}" data-chat-only data-no-i18n>${moduleIcon(law, 14)}${esc(law.name)}</span>` : '';
/* legalwork's welcome: the mark, a two-tone line, one sentence, then the places to start. */
C.innerHTML = `<div class="home">
<div class="home-mark">${document.querySelector('.brand .logo').outerHTML}</div>
@@ -4354,8 +4349,7 @@ async function viewHome(C) {
<div class="home-line">${svg(ICN.search, 20)}
<textarea id="homeQ" rows="1" autocomplete="off" placeholder="${picked ? 'Zapytaj asystenta albo szukaj w modułach…' : 'Szukaj spraw, umów, plików i kancelarii…'}"
aria-label="${picked ? 'Zapytaj asystenta' : 'Szukaj we wszystkich modułach'}" oninput="homeQuery(this)" onkeydown="homeKey(event)"></textarea></div>
<div class="home-scope"><span>Szuka w:</span>${searchable.map((m) => `<span class="home-scope-mod" data-no-i18n>${moduleIcon(m, 14)}${esc(m.name)}</span>`).join('')}${lawChip}
<span class="home-tools">${picker}<button class="btn sm ghost home-new" type="button" onclick="chatReset()">Nowa rozmowa</button>
<div class="home-scope"><span class="home-tools">${picker}<button class="btn sm ghost home-new" type="button" onclick="chatReset()">Nowa rozmowa</button>
<button class="home-send" type="submit" aria-label="${picked ? 'Wyślij' : 'Szukaj'}" onclick="homeSendClick(event)">${svg(ICN.arrowright, 18)}</button></span></div></div>
</form>
<div id="homeResults" class="home-results hidden" aria-live="polite"></div>` : '')