From 3589a9d971a3db5ffbbfaf3b13fac545ecf77f2d Mon Sep 17 00:00:00 2001 From: nabil salah Date: Wed, 21 Aug 2024 14:52:40 +0300 Subject: [PATCH] fix: tables alignments and font weight Signed-off-by: nabil salah --- frontend/src/components/CreateFlist.vue | 4 ++-- frontend/src/components/Footer.vue | 2 +- frontend/src/components/Home.vue | 30 ++++++++++++++++-------- frontend/src/components/Login.vue | 2 +- frontend/src/components/Navbar.vue | 3 ++- frontend/src/components/PreviewFlist.vue | 28 ++++++++++++++++++++++ frontend/src/components/UserFlist.vue | 12 ++++++---- 7 files changed, 61 insertions(+), 20 deletions(-) create mode 100644 frontend/src/components/PreviewFlist.vue diff --git a/frontend/src/components/CreateFlist.vue b/frontend/src/components/CreateFlist.vue index 71574e5..f65028c 100644 --- a/frontend/src/components/CreateFlist.vue +++ b/frontend/src/components/CreateFlist.vue @@ -192,7 +192,7 @@ { \ No newline at end of file diff --git a/frontend/src/components/Footer.vue b/frontend/src/components/Footer.vue index 41287b6..21764ab 100644 --- a/frontend/src/components/Footer.vue +++ b/frontend/src/components/Footer.vue @@ -17,6 +17,6 @@ diff --git a/frontend/src/components/Home.vue b/frontend/src/components/Home.vue index 007311e..b1fe81e 100644 --- a/frontend/src/components/Home.vue +++ b/frontend/src/components/Home.vue @@ -11,16 +11,16 @@ --> - + - Users + Users @@ -50,13 +52,19 @@ :items="filteredFlist" :headers="tableHeader" dense + class="thick-border " items-per-page="25" > + + @@ -95,6 +103,7 @@ import { toast } from "vue3-toastify"; import "vue3-toastify/dist/index.css"; import { api } from "../client.ts"; import {filesize} from "filesize"; +import { title } from "process"; const baseURL = import.meta.env.VITE_API_URL; @@ -104,7 +113,8 @@ const copyLink = (url: string) => { }; const tableHeader = [ - { title: "Name", key: "name" }, + { title: "File Name", key: "name" }, + { title: "Preview", key:"preview"}, { title: "Size", key: "size" }, { title: "Last Modified", key: "last_modified" }, { title: "Download", key: "path_uri", sortable: false }, @@ -156,7 +166,7 @@ watch(username, () => { filteredFlistFn(); }); - diff --git a/frontend/src/components/Login.vue b/frontend/src/components/Login.vue index 8c06cb9..b0139c3 100644 --- a/frontend/src/components/Login.vue +++ b/frontend/src/components/Login.vue @@ -63,7 +63,7 @@ > - + + diff --git a/frontend/src/components/PreviewFlist.vue b/frontend/src/components/PreviewFlist.vue new file mode 100644 index 0000000..902aea3 --- /dev/null +++ b/frontend/src/components/PreviewFlist.vue @@ -0,0 +1,28 @@ + + + \ No newline at end of file diff --git a/frontend/src/components/UserFlist.vue b/frontend/src/components/UserFlist.vue index 308c79a..0908e12 100644 --- a/frontend/src/components/UserFlist.vue +++ b/frontend/src/components/UserFlist.vue @@ -132,17 +132,19 @@ onMounted(async () => { .thick-border .v-data-table__wrapper { border: 3px solid #000; } - -.v-data-table td { +.v-data-table-footer__items-per-page { + display: none !important; +} +.v-data-table td{ padding: 4px 8px; font-size: 12px; - font-weight: bold; + font-weight: 500; } .file-name { - font-weight: bold; + font-weight: 500; } .mn-height { - min-height: calc(100% - 6%); + min-height: calc(100% - 7%); }