From c6fba24f97c5d2a3803f3590ddb4da53c5f06791 Mon Sep 17 00:00:00 2001
From: spencerwooo
Date: Fri, 17 Dec 2021 15:28:11 +0800
Subject: [PATCH] minor style changes to input and button hover effects
---
components/Auth.tsx | 47 ++++++++++++++--------------
components/DownloadBtn.tsx | 4 +--
components/Navbar.tsx | 2 +-
components/previews/VideoPreview.tsx | 19 ++++-------
4 files changed, 33 insertions(+), 39 deletions(-)
diff --git a/components/Auth.tsx b/components/Auth.tsx
index 515612e..fc27997 100644
--- a/components/Auth.tsx
+++ b/components/Auth.tsx
@@ -25,30 +25,31 @@ const Auth: FunctionComponent<{ redirect: string }> = ({ redirect }) => {
enter it below.
- {
- setToken(e.target.value)
- }}
- onKeyPress={e => {
- if (e.key === 'Enter' || e.key === 'NumpadEnter') {
+
+ {
+ setToken(e.target.value)
+ }}
+ onKeyPress={e => {
+ if (e.key === 'Enter' || e.key === 'NumpadEnter') {
+ router.reload()
+ }
+ }}
+ />
+
+
)
}
diff --git a/components/DownloadBtn.tsx b/components/DownloadBtn.tsx
index 66798a7..2aacb53 100644
--- a/components/DownloadBtn.tsx
+++ b/components/DownloadBtn.tsx
@@ -21,7 +21,7 @@ const DownloadBtn: FunctionComponent<{ downloadUrl: string }> = ({ downloadUrl }
}}
/>
= ({ downloadUrl }
Download
{
clipboard.copy(`${getBaseUrl()}/api?path=${asPath}&raw=true`)
toast.success('Copied direct link to clipboard.')
diff --git a/components/Navbar.tsx b/components/Navbar.tsx
index 513f55e..bfcd2d8 100644
--- a/components/Navbar.tsx
+++ b/components/Navbar.tsx
@@ -137,7 +137,7 @@ const Navbar = () => {
setIsOpen(false)}
>
Cancel
diff --git a/components/previews/VideoPreview.tsx b/components/previews/VideoPreview.tsx
index 49257c1..ccaa249 100644
--- a/components/previews/VideoPreview.tsx
+++ b/components/previews/VideoPreview.tsx
@@ -28,16 +28,9 @@ export const VideoPreview: FunctionComponent<{ file: any }> = ({ file }) => {