-
+
We gratefully acknowledge support from our volunteer peer reviewers,
diff --git a/src/app/components/News.tsx b/src/app/components/News.tsx
index 93e0683..b36dfd0 100644
--- a/src/app/components/News.tsx
+++ b/src/app/components/News.tsx
@@ -14,7 +14,7 @@ export default function News() {
-
eeXiv 2.0 has been released! The site should feel significantly more
- responsive. Data cacheing has also been implemented so search results
+ responsive. Data caching has also been implemented so search results
and documents will load instantly the second time.
- Mobile support is currently in beta.
diff --git a/src/app/components/SearchBar.tsx b/src/app/components/SearchBar.tsx
index 628e7bc..6f6b562 100644
--- a/src/app/components/SearchBar.tsx
+++ b/src/app/components/SearchBar.tsx
@@ -2,12 +2,15 @@
import { useRouter } from 'next/navigation'
import { useState } from 'react'
-export default function SearchBar() {
+export default function SearchBar({
+ onSubmit,
+}: Readonly<{ onSubmit?: () => void }>) {
const [searchInput, setSearchInput] = useState('')
const router = useRouter()
const handleClick = (event: React.MouseEvent) => {
router.push(`/search?q=${encodeURIComponent(searchInput)}`)
+ onSubmit && onSubmit()
}
const handleInputChange = (e: React.ChangeEvent) => {
diff --git a/src/app/components/mobileMenu.module.css b/src/app/components/mobileMenu.module.css
index c0eaf24..18806f6 100644
--- a/src/app/components/mobileMenu.module.css
+++ b/src/app/components/mobileMenu.module.css
@@ -1,6 +1,10 @@
.menu {
- @apply w-[100vw] h-full overflow-x-hidden left-[0] top-[235px] z-10 absolute bg-slate-200;
- @apply transition-transform duration-300 ease-in-out;
+ @apply overflow-hidden left-[0] top-[235px] z-10 absolute bg-slate-200;
+ @apply duration-300;
+ height: calc(200px);
+ transition: width 0.5s ease-in-out;
+ width: 100vw;
+ right: 0;
}
.search-bar {
@@ -12,5 +16,5 @@
}
.menu-hidden {
- @apply translate-y-[100vh] invisible;
+ width: 0;
}
diff --git a/src/app/container/container.module.css b/src/app/container/container.module.css
index e12e5b9..cc9ea11 100644
--- a/src/app/container/container.module.css
+++ b/src/app/container/container.module.css
@@ -1,3 +1,11 @@
-.container {
- min-height: calc(100vh - 400px);
+/* @media only screen and (min-width: 48em) {
+ .container {
+ min-height: calc(100vh - 400px);
+ }
}
+
+@media only screen and (max-width: 48em) {
+ .container {
+ min-height: 400px;
+ }
+} */
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 2ff9b1e..490a118 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -71,42 +71,46 @@ export default function RootLayout({