fix(quick-search): Esc ne sort plus du cadre, et la note dit qu'elle se copie
Le champ de recherche gardait la largeur de son texte d'aide (min-width par defaut) et poussait l'interrupteur et Esc hors du panneau. Le texte d'aide parlait aussi de copier alors que Fill est souvent actif : il dit "Search..." tout court. Et le bouton d'une note precise, en mode Fill, qu'une note n'est jamais tapee. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -2080,7 +2080,9 @@ input[type="range"]::-webkit-slider-thumb {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.quick-search-input input {
|
.quick-search-input input {
|
||||||
flex: 1;
|
/* min-width:0 : sans lui le champ garde la largeur de son texte d'aide et
|
||||||
|
pousse l'interrupteur et Esc hors du cadre. */
|
||||||
|
flex: 1; min-width: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
@@ -2088,6 +2090,7 @@ input[type="range"]::-webkit-slider-thumb {
|
|||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
.quick-search-input kbd {
|
.quick-search-input kbd {
|
||||||
|
flex-shrink: 0;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
padding: 2px 6px;
|
padding: 2px 6px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|||||||
+1
-1
@@ -1229,7 +1229,7 @@
|
|||||||
<div class="quick-search-input">
|
<div class="quick-search-input">
|
||||||
<svg><use href="#i-search"/></svg>
|
<svg><use href="#i-search"/></svg>
|
||||||
<input id="quickSearchInput" type="text"
|
<input id="quickSearchInput" type="text"
|
||||||
placeholder="Search and press Enter to copy password…"
|
placeholder="Search…"
|
||||||
autocomplete="off">
|
autocomplete="off">
|
||||||
<!-- Copier ou remplir : visible seulement quand une fenetre cible
|
<!-- Copier ou remplir : visible seulement quand une fenetre cible
|
||||||
existe - sans elle, remplir n'aurait rien a viser. -->
|
existe - sans elle, remplir n'aurait rien a viser. -->
|
||||||
|
|||||||
+4
-1
@@ -132,7 +132,10 @@ function quickSearchRender() {
|
|||||||
acts.appendChild(b);
|
acts.appendChild(b);
|
||||||
};
|
};
|
||||||
if (e.username) act('i-user', verb + 'username', 'user');
|
if (e.username) act('i-user', verb + 'username', 'user');
|
||||||
if (e.kind === 'note') act('i-note', 'Copy note', 'note');
|
// UNE NOTE SE COPIE TOUJOURS, meme en Fill : tapee, chacun de ses
|
||||||
|
// retours a la ligne partirait comme un Entree dans le formulaire.
|
||||||
|
if (e.kind === 'note')
|
||||||
|
act('i-note', qsFills() ? 'Copy note (a note is never typed)' : 'Copy note', 'note');
|
||||||
else act('i-key', verb + 'password', 'pwd');
|
else act('i-key', verb + 'password', 'pwd');
|
||||||
if (e.totp_secret && e.totp_iv) act('i-clock', verb + '2FA code', 'totp');
|
if (e.totp_secret && e.totp_iv) act('i-clock', verb + '2FA code', 'totp');
|
||||||
row.appendChild(acts);
|
row.appendChild(acts);
|
||||||
|
|||||||
Reference in New Issue
Block a user