Make content, cards on config pages occupy the whole middle column

- Make the config page content use  the same top level 3-column layout
  as the khoj-header-wrapper
  This ensures the content is aligned with heading pane width
- Let cards and other settings sections scale to the width of their
  grid element. This utilizes more of the screen space and does it
  consistently across the different settings pages
This commit is contained in:
Debanjum Singh Solanky 2024-04-30 18:08:20 +05:30
parent ad4145e48c
commit c52ed333fa
2 changed files with 6 additions and 5 deletions

View file

@ -24,9 +24,11 @@
<div class="filler"></div> <div class="filler"></div>
</div> </div>
<div class=”content”> <div class="content khoj-header-wrapper">
<div class="filler"></div>
{% block content %} {% block content %}
{% endblock %} {% endblock %}
<div class="filler"></div>
</div> </div>
</body> </body>
<script> <script>
@ -62,7 +64,7 @@
} }
.section { .section {
display: grid; display: grid;
justify-self: center; justify-self: normal;
} }
div.section-manage-files, div.section-manage-files,
@ -118,7 +120,7 @@
grid-template-rows: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
gap: 8px; gap: 8px;
padding: 24px 16px 8px; padding: 24px 16px 8px;
width: 320px; width: 100%;
height: 180px; height: 180px;
background: var(--background-color); background: var(--background-color);
border: 1px solid rgb(229, 229, 229); border: 1px solid rgb(229, 229, 229);
@ -334,7 +336,7 @@
div.api-settings { div.api-settings {
width: 660px; width: 100%;
} }
img.api-key-action:hover { img.api-key-action:hover {

View file

@ -369,7 +369,6 @@
</div> </div>
{% endif %} {% endif %}
<div class="section"></div> <div class="section"></div>
</div>
<div class="section" id="notification-banner-parent"> <div class="section" id="notification-banner-parent">
<div id="notification-banner" style="display: none;"></div> <div id="notification-banner" style="display: none;"></div>
</div> </div>