From aa7cc146bc7ccb0841cf6fef92b72c7522500cc4 Mon Sep 17 00:00:00 2001
From: Kalle <38327916+Sendouc@users.noreply.github.com>
Date: Sat, 17 Jan 2026 11:30:05 +0200
Subject: [PATCH] Better search input alignment for mobile
---
app/components/layout/CommandPalette.module.css | 3 +--
app/components/layout/TopNavMenus.module.css | 2 +-
.../layout/TopRightButtons.module.css | 17 +++++++++++++++++
app/components/layout/TopRightButtons.tsx | 14 ++++++++++----
4 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/app/components/layout/CommandPalette.module.css b/app/components/layout/CommandPalette.module.css
index 4b25ecb9a..027f1e407 100644
--- a/app/components/layout/CommandPalette.module.css
+++ b/app/components/layout/CommandPalette.module.css
@@ -9,7 +9,6 @@
color: var(--color-text-high);
font-size: var(--fonts-xs);
cursor: pointer;
- min-width: 180px;
height: var(--input-height-small);
transition: background-color 0.15s;
}
@@ -228,7 +227,7 @@
font-size: var(--fonts-sm);
}
-@media screen and (max-width: 599px) {
+@media screen and (max-width: 1000px) {
.searchKbd {
display: none;
}
diff --git a/app/components/layout/TopNavMenus.module.css b/app/components/layout/TopNavMenus.module.css
index 7a6202aff..070896122 100644
--- a/app/components/layout/TopNavMenus.module.css
+++ b/app/components/layout/TopNavMenus.module.css
@@ -108,7 +108,7 @@
}
}
-@media screen and (max-width: 900px) {
+@media screen and (max-width: 1000px) {
.container {
display: none;
}
diff --git a/app/components/layout/TopRightButtons.module.css b/app/components/layout/TopRightButtons.module.css
index d448fbf03..364bd80de 100644
--- a/app/components/layout/TopRightButtons.module.css
+++ b/app/components/layout/TopRightButtons.module.css
@@ -4,6 +4,23 @@
margin-left: auto;
}
+.searchAndAddContainer {
+ display: grid;
+ grid-template-columns: 2fr 1fr;
+ gap: var(--s-3);
+}
+
+.searchWrapper > button,
+.addNewWrapper > button {
+ width: 100%;
+}
+
+@media screen and (max-width: 1000px) {
+ .searchAndAddContainer {
+ grid-template-columns: 1fr 1fr;
+ }
+}
+
.button {
display: grid;
place-items: center;
diff --git a/app/components/layout/TopRightButtons.tsx b/app/components/layout/TopRightButtons.tsx
index 0bad442ce..459933cf7 100644
--- a/app/components/layout/TopRightButtons.tsx
+++ b/app/components/layout/TopRightButtons.tsx
@@ -33,10 +33,16 @@ export function TopRightButtons({
) : null}
{isLoggedIn ? (
- <>
- {showSearch ?