fix: other minor fixes (#388)

* remove overflow-hidden on when no collapsed

* fix recently added on homescreen

* fix delete account formatting

* add manufacturer to search

* move nav button to left
This commit is contained in:
Hayden 2023-04-01 22:01:21 -08:00 committed by GitHub
parent ced5aef6d1
commit 4dd925caf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 38 additions and 20 deletions

View file

@ -23,10 +23,10 @@
</div>
<div
:class="{
'max-h-[99999px]': !collapsed,
'max-h-0': collapsed,
'max-h-[9000px]': collapsable && !collapsed,
'max-h-0 overflow-hidden': collapsed,
}"
class="transition-[max-height] duration-200 overflow-hidden"
class="transition-[max-height] duration-200"
>
<slot />
</div>

View file

@ -79,7 +79,7 @@
};
const props = defineProps<Props>();
const sortByProperty = ref<keyof ItemSummary>("name");
const sortByProperty = ref<keyof ItemSummary | "">("");
const headers = computed<TableHeader[]>(() => {
return [
@ -136,6 +136,10 @@
}
function itemSort(a: ItemSummary, b: ItemSummary) {
if (!sortByProperty.value) {
return 0;
}
const aLower = extractSortable(a, sortByProperty.value);
const bLower = extractSortable(b, sortByProperty.value);