Skip to content

Commit

Permalink
Give admin tables min-height
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Nov 23, 2023
1 parent b32081e commit 9afcb87
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions frontend/src/lib/app.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ table tr:nth-last-child(-n + 2):not(:nth-child(-n + 2)) .dropdown {
@apply dropdown-top;
}

/* add some padding for dropdowns if the table has less than 3 elements */
.overflow-x-auto:has(> table .dropdown):not(:has(> table tr:nth-child(3))) {
padding-bottom: 80px;
}

.prose :where(a) {
/* bold is just a bit too loud, especially when there are lots of link (e.g. our login welcome message) */
@apply font-normal;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(authenticated)/admin/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<Input label="" placeholder={$t('admin_dashboard.filter_placeholder')} bind:value={$queryParamValues.userSearch} debounce />

<div class="divider" />
<div class="overflow-x-auto">
<div class="overflow-x-auto min-h-[255px]">
<table class="table table-lg">
<thead>
<tr class="bg-base-200">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async function softDeleteProject(project: Project): Promise<void> {
</FilterBar>

<div class="divider"/>
<div class="overflow-x-auto">
<div class="overflow-x-auto min-h-[225px]">
<table class="table table-lg">
<thead>
<tr class="bg-base-200">
Expand Down

0 comments on commit 9afcb87

Please sign in to comment.