From 51b05631c3508f269a51c7688da4c6e30e6888e4 Mon Sep 17 00:00:00 2001 From: spencerwooo Date: Sat, 18 Dec 2021 09:43:24 +0800 Subject: [PATCH] use aspect ratios in tailwind 3.0 and remove css hacks --- components/FileListing.tsx | 2 +- components/previews/AudioPreview.tsx | 2 +- components/previews/MarkdownPreview.tsx | 4 ++-- components/previews/VideoPreview.tsx | 18 ++++++++---------- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/components/FileListing.tsx b/components/FileListing.tsx index 9de1167..56c4eac 100644 --- a/components/FileListing.tsx +++ b/components/FileListing.tsx @@ -334,7 +334,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) = return (
-
Name
+
Name
Last Modified
Size
Actions
diff --git a/components/previews/AudioPreview.tsx b/components/previews/AudioPreview.tsx index 73b5198..87549e7 100644 --- a/components/previews/AudioPreview.tsx +++ b/components/previews/AudioPreview.tsx @@ -18,7 +18,7 @@ const AudioPreview: FunctionComponent<{ file: any }> = ({ file }) => { <>
-
+
{playerStatus === PlayerState.Loading ? (
+
) } if (!data) { return ( -
+
) diff --git a/components/previews/VideoPreview.tsx b/components/previews/VideoPreview.tsx index 69646f7..5a654fb 100644 --- a/components/previews/VideoPreview.tsx +++ b/components/previews/VideoPreview.tsx @@ -15,16 +15,14 @@ const VideoPreview: FunctionComponent<{ file: any }> = ({ file }) => { return ( <>
-
- -
+