From 2d284b57e9d154945c7217a045eca9d1a9b3cc89 Mon Sep 17 00:00:00 2001 From: prin Date: Mon, 17 Jun 2024 01:06:44 +0800 Subject: [PATCH] fix: update min height of modals #22 #29 --- src/components/common.tsx | 8 +------- src/components/modals/export-data.tsx | 2 +- src/components/modals/export-media.tsx | 2 +- src/components/module-ui.tsx | 7 ++++++- src/components/table/table-view.tsx | 2 +- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/components/common.tsx b/src/components/common.tsx index f991ba6..41366f4 100644 --- a/src/components/common.tsx +++ b/src/components/common.tsx @@ -65,13 +65,7 @@ type ModalProps = { /** * Common template for modals. */ -export function Modal({ - show, - onClose, - title, - children, - class: className = 'max-w-4xl md:max-w-screen-md sm:max-w-screen-sm', -}: ModalProps) { +export function Modal({ show, onClose, title, children, class: className }: ModalProps) { if (!show) { return ; } diff --git a/src/components/modals/export-data.tsx b/src/components/modals/export-data.tsx index 45dfa9b..a09c7a2 100644 --- a/src/components/modals/export-data.tsx +++ b/src/components/modals/export-data.tsx @@ -86,7 +86,7 @@ export function ExportDataModal({ title, table, show, onClose }: ExportDataMo return ( ({ return ( - + diff --git a/src/components/table/table-view.tsx b/src/components/table/table-view.tsx index fa6ab63..992317d 100644 --- a/src/components/table/table-view.tsx +++ b/src/components/table/table-view.tsx @@ -137,7 +137,7 @@ export function TableView({ title, extension }: TableViewProps) { {/* Empty view. */} {table.getRowModel().rows.length > 0 ? null : ( -
+

{t('No data available.')}

)}