removed table comments and redesigned plus button
This commit is contained in:
@@ -32,14 +32,14 @@ function createEntry(value: CreateEntrySchema) {
|
|||||||
important: true,
|
important: true,
|
||||||
description: 'please use a unique name'
|
description: 'please use a unique name'
|
||||||
})
|
})
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
entries.value.push({
|
entries.value.push({
|
||||||
last_reset: moment(),
|
last_reset: moment(),
|
||||||
name: value.name,
|
name: value.name,
|
||||||
text: value.text && value.text.trim() !== ''
|
text: value.text && value.text.trim() !== ''
|
||||||
? value.text : undefined
|
? value.text : undefined
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -65,28 +65,14 @@ function openDetailWithName(name: string) {
|
|||||||
<span>{{ entry.name }}</span>
|
<span>{{ entry.name }}</span>
|
||||||
<Badge variant="secondary">{{ getDifferenceToToday(entry.last_reset) }} days</Badge>
|
<Badge variant="secondary">{{ getDifferenceToToday(entry.last_reset) }} days</Badge>
|
||||||
</Button>
|
</Button>
|
||||||
<!-- <Table> -->
|
|
||||||
<!-- <TableCaption>List of Entries</TableCaption> -->
|
|
||||||
<!-- <TableHeader> -->
|
|
||||||
<!-- <TableRow> -->
|
|
||||||
<!-- <TableHead>Name</TableHead> -->
|
|
||||||
<!-- <TableHead>Last Accident</TableHead> -->
|
|
||||||
<!-- </TableRow> -->
|
|
||||||
<!-- </TableHeader> -->
|
|
||||||
<!---->
|
|
||||||
<!-- <TableRow v-for="entry in entries"> -->
|
|
||||||
<!-- <TableCell> {{ entry.name }} </TableCell> -->
|
|
||||||
<!-- <TableCell> {{ getDifferenceToToday(entry.last_reset) }} </TableCell> -->
|
|
||||||
<!-- </TableRow> -->
|
|
||||||
<!-- </Table> -->
|
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
|
|
||||||
<Drawer>
|
<Drawer>
|
||||||
<DrawerTrigger as-child>
|
<DrawerTrigger as-child>
|
||||||
<div>
|
<div class="fixed bottom-0 w-full h-28 flex justify-center items-center">
|
||||||
<Button variant="outline" size="icon" class="w-20 h-20 fixed right-10 bottom-10">
|
<Button size="icon" class="h-20 sm:w-3/4 w-11/12">
|
||||||
<Plus />
|
<Plus />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
@@ -127,4 +113,4 @@ function openDetailWithName(name: string) {
|
|||||||
</Drawer>
|
</Drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
Reference in New Issue
Block a user