mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Collapse navigation tabs into icons on mobile. Add spacing to them
This commit is contained in:
parent
93edd5427f
commit
e45edbb992
2 changed files with 15 additions and 3 deletions
|
@ -76,6 +76,9 @@
|
|||
padding: 16px 0;
|
||||
margin: 0;
|
||||
}
|
||||
.khoj-header {
|
||||
align-items: center;
|
||||
}
|
||||
.khoj-footer {
|
||||
margin: 16px 0 0 0;
|
||||
}
|
||||
|
@ -112,6 +115,9 @@ a.khoj-logo {
|
|||
.khoj-nav-selected {
|
||||
background-color: var(--primary);
|
||||
}
|
||||
span.khoj-nav-item-text {
|
||||
padding-left: 8px;
|
||||
}
|
||||
img.khoj-logo {
|
||||
width: min(60vw, 90px);
|
||||
max-width: 100%;
|
||||
|
@ -212,4 +218,10 @@ img.khoj-logo {
|
|||
grid-gap: 0px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
a.khoj-nav {
|
||||
padding: 0 16px;
|
||||
}
|
||||
span.khoj-nav-item-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<img class="khoj-logo" src="/static/assets/icons/khoj-logo-sideways-500.png?v={{ khoj_version }}" alt="Khoj"></img>
|
||||
</a>
|
||||
<nav class="khoj-nav">
|
||||
<a id="chat-nav" class="khoj-nav" href="/chat">💬 Chat</a>
|
||||
<a id="agents-nav" class="khoj-nav" href="/agents">🧞♂️️️ Agents</a>
|
||||
<a id="chat-nav" class="khoj-nav" href="/chat">💬 <span class="khoj-nav-item-text">Chat</span></a>
|
||||
<a id="agents-nav" class="khoj-nav" href="/agents">🤖 <span class="khoj-nav-item-text">Agents</span></a>
|
||||
{% if has_documents %}
|
||||
<a id="search-nav" class="khoj-nav" href="/search">🔎 Search</a>
|
||||
<a id="search-nav" class="khoj-nav" href="/search">🔎 <span class="khoj-nav-item-text">Search</span></a>
|
||||
{% endif %}
|
||||
<!-- Dropdown Menu -->
|
||||
{% if username %}
|
||||
|
|
Loading…
Add table
Reference in a new issue