forked from mirrors/homebox
refactor: refactor item page UI (#235)
* fix generated types * fix tailwind auto-complete * force lowercase buttons * add title and change style for items page * add copy button support for item details * empty state for log * fix duplicate padding * add option for create without closing the current dialog. * hide purchase price is not set * invert toggle for edit mode * update styles on item cards * add edit support for maintenance logs
This commit is contained in:
parent
c19fe94c08
commit
91d0c588d9
13 changed files with 197 additions and 68 deletions
|
@ -4,7 +4,7 @@ import { DaisyTheme } from "~~/lib/data/themes";
|
|||
export type LocationViewPreferences = {
|
||||
showDetails: boolean;
|
||||
showEmpty: boolean;
|
||||
editorSimpleView: boolean;
|
||||
editorAdvancedView: boolean;
|
||||
theme: DaisyTheme;
|
||||
};
|
||||
|
||||
|
@ -18,8 +18,8 @@ export function useViewPreferences(): Ref<LocationViewPreferences> {
|
|||
{
|
||||
showDetails: true,
|
||||
showEmpty: true,
|
||||
editorSimpleView: true,
|
||||
theme: "garden",
|
||||
editorAdvancedView: false,
|
||||
theme: "homebox",
|
||||
},
|
||||
{ mergeDefaults: true }
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue