diff --git a/src/khoj/interface/web/assets/khoj.css b/src/khoj/interface/web/assets/khoj.css index a0146705..178bcdd8 100644 --- a/src/khoj/interface/web/assets/khoj.css +++ b/src/khoj/interface/web/assets/khoj.css @@ -107,6 +107,10 @@ p#khoj-banner { } /* Dropdown in navigation menu*/ +#khoj-nav-menu-container { + display: flex; + align-items: center; +} .khoj-nav-dropdown-content { display: block; grid-auto-flow: row; @@ -115,6 +119,7 @@ p#khoj-banner { min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); right: 15vw; + top: 64px; z-index: 1; opacity: 0; transition: opacity 0.1s ease-in-out; @@ -140,13 +145,26 @@ p#khoj-banner { display: block; font-weight: bold; } -img.circle { +.circle { border-radius: 50%; - border: 2px solid var(--primary-hover); + border: 2px solid var(--primary-inverse); width: 40px; height: 40px; vertical-align: text-top; padding: 3px; + cursor: pointer; +} +.circle:hover { + background-color: var(--primary-hover); +} +.user-initial { + background-color: white; + color: black; + display: grid; + justify-content: center; + align-items: center; + font-size: 20px; + box-sizing: unset; } @media screen and (max-width: 700px) { diff --git a/src/khoj/interface/web/base_config.html b/src/khoj/interface/web/base_config.html index 99066812..46e0040f 100644 --- a/src/khoj/interface/web/base_config.html +++ b/src/khoj/interface/web/base_config.html @@ -34,13 +34,10 @@ img.khoj-logo { max-width: none!important; } - div.khoj-header-wrapper{ + div.khoj-header-wrapper { display: grid; grid-template-columns: 1fr min(70vw, 100%) 1fr; } - .khoj-header { - padding: 14px 0; - } img.circle { width: 49px; height: 49px; @@ -268,13 +265,9 @@ width: 320px; } - div.khoj-header-wrapper{ + div.khoj-header-wrapper { grid-template-columns: auto; } - div.khoj-header { - padding: 14px 10px; - } - } diff --git a/src/khoj/interface/web/utils.html b/src/khoj/interface/web/utils.html index 31c07a54..bea97f7a 100644 --- a/src/khoj/interface/web/utils.html +++ b/src/khoj/interface/web/utils.html @@ -1,4 +1,4 @@ -{% macro heading_pane(user_photo="/static/assets/icons/anon.png", username="Anon") -%} +{% macro heading_pane(user_photo, username) -%}
🔎 Search