Skip to content

Commit

Permalink
Fix styling of Whatsapp card & notify banner in config page of web app
Browse files Browse the repository at this point in the history
- Put Whatsapp card back in Client section.
  - Fixes side spacing on cards
  - Improve Whatsapp card row gaps

- Hide notification banner on web app load. Previously it showed up as
  a yellow dot on smaller displays
  • Loading branch information
debanjum committed Feb 1, 2024
1 parent e05474e commit 1c6f1d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/khoj/interface/web/base_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,18 @@
div.api-settings {
grid-template-rows: 1fr 1fr auto;
}

#api-settings-card-description {
margin: 8px 0 0 0;
}

#api-settings-keys-table {
margin-bottom: 16px;
}

#phone-number-input-card {
grid-template-rows: auto;
gap: 20px;
}

div.instructions {
font-size: large;
}
Expand Down
4 changes: 1 addition & 3 deletions src/khoj/interface/web/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ <h3 class="card-title">API Keys</h3>
</button>
</div>
</div>
</div>
<div id="whatsapp" class="section">
<div id="phone-number-input-card" class="api-settings">
<div class="card-title-row">
<img class="card-icon" src="/static/assets/icons/whatsapp.svg" alt="WhatsApp icon">
Expand Down Expand Up @@ -294,7 +292,7 @@ <h3 class="card-title">
<div class="section"></div>
</div>
<div class="section" id="notification-banner-parent">
<div id="notification-banner"></div>
<div id="notification-banner" style="display: none;"></div>
</div>
</div>
<script>
Expand Down

0 comments on commit 1c6f1d9

Please sign in to comment.