diff --git a/android-client/web/app.html b/android-client/web/app.html index bcfd80e..25705a0 100644 --- a/android-client/web/app.html +++ b/android-client/web/app.html @@ -233,6 +233,7 @@ /* --- detail ------------------------------------------------------------ */ .head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; } + .head .av { width: 30px; height: 30px; font-size: 13px; flex: 0 0 auto; } .head h1 { flex: 1; margin: 0; font-size: 19px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .field { @@ -588,6 +589,7 @@
+

@@ -1073,6 +1075,7 @@ function renderDetail(d) { document.getElementById('dtitle').textContent = d.title || ''; document.getElementById('kebab').hidden = false; document.getElementById('pencil').hidden = false; + document.getElementById('dav').hidden = true; var html = '', i; if (d.totp) html += '
2FA code
' @@ -1385,6 +1388,7 @@ function openNewEntry() { closeMenu(); document.getElementById('kebab').hidden = true; document.getElementById('pencil').hidden = true; + document.getElementById('dav').hidden = true; document.getElementById('fields').innerHTML = '
' + '
Kind
' @@ -1523,14 +1527,12 @@ function openEditEntry() { // L'ICONE ET LE NOM EN TETE : on voit ce qu'on modifie, et surtout ce que // les trois boutons d'en dessous vont remplacer. var d = lastDetail; + var av = document.getElementById('dav'); + av.hidden = false; + av.className = 'av' + (d.icon ? ' has-img' : ''); + av.innerHTML = d.icon ? '' : esc(d.initial || ''); var html = '
' - + '
' - + '
' - + (d.icon ? '' : esc(d.initial || '')) - + '
' - + '
' - + esc(d.title || '') + '
' - + '
' + + '
Icon
' + '' + '' + ''