diff --git a/public/components/assistant.html b/public/components/assistant.html index 8e978e32..a72cffe8 100644 --- a/public/components/assistant.html +++ b/public/components/assistant.html @@ -7,12 +7,12 @@
diff --git a/public/css/styles.css b/public/css/styles.css index 51729054..fc81392e 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -49,7 +49,8 @@ body{font-family:'Inter',system-ui,sans-serif;background:var(--g50);color:var(-- the account card at its foot, and the content gets the full height. */ /* Icon, search, collapse — nothing else earns a place in the head row. */ .menu-head { display:flex; align-items:center; gap:4px; padding:10px 8px 8px 12px; } -.menu-head .menu-icon-btn:first-of-type { margin-left:auto; } +/* Toggle leads, the mark takes the slack, search closes the row. */ +.menu-brand { margin-right:auto; } .menu-brand { display:flex; align-items:center; gap:8px; flex:0 0 auto; min-width:0; } .menu-brand h1 { font-size:15px; font-weight:700; color:var(--g900); margin:0; line-height:1; letter-spacing:-.01em; } .menu-brand i { font-size:16px; color:var(--blue); flex:0 0 auto; } @@ -1277,9 +1278,12 @@ body.menu-hidden .sidebar-section-label, body.menu-hidden .menu-brand h1, body.menu-hidden .account-id, body.menu-hidden .account-chevron { display:none; } -body.menu-hidden .menu-head { flex-direction:column; gap:6px; padding:10px 0 8px; align-items:center; } -body.menu-hidden .menu-brand { flex:0 0 auto; justify-content:center; } -body.menu-hidden .menu-brand i { font-size:19px; } +body.menu-hidden .menu-head { flex-direction:column; gap:4px; padding:10px 0 8px; align-items:stretch; } +/* Every item is the same 52px-wide centred box, so the icons share one axis. */ +body.menu-hidden .menu-head > * { width:100%; margin:0; justify-content:center; } +body.menu-hidden .menu-brand { display:flex; align-items:center; justify-content:center; height:32px; gap:0; } +body.menu-hidden .menu-brand i { font-size:19px; width:auto; } +body.menu-hidden .menu-icon-btn { width:32px; height:32px; margin:0 auto; } body.menu-hidden .account-card { padding:8px 0; } body.menu-hidden .account-card-btn { justify-content:center; padding:6px 0; } body.menu-hidden .account-menu { left:8px; right:auto; width:210px; } diff --git a/public/index.html b/public/index.html index c7470a4b..12823b15 100644 --- a/public/index.html +++ b/public/index.html @@ -178,12 +178,12 @@