diff --git a/app/components/layout/AnythingAdder.tsx b/app/components/layout/AnythingAdder.tsx
index ee96d1bed..4a1861a7a 100644
--- a/app/components/layout/AnythingAdder.tsx
+++ b/app/components/layout/AnythingAdder.tsx
@@ -22,7 +22,7 @@ import {
type SendouMenuItemProps,
} from "../elements/Menu";
-export function AnythingAdder() {
+export function AnythingAdder({ compact }: { compact?: boolean }) {
const { t } = useTranslation(["common"]);
const user = useUser();
@@ -106,9 +106,10 @@ export function AnythingAdder() {
}
+ shape={compact ? "square" : undefined}
data-testid="anything-adder-menu-button"
>
- {t("common:actions.addNew")}…
+ {compact ? undefined : `${t("common:actions.addNew")}…`}
}
>
diff --git a/app/components/layout/TopRightButtons.module.css b/app/components/layout/TopRightButtons.module.css
index 53f798d4b..47291f54d 100644
--- a/app/components/layout/TopRightButtons.module.css
+++ b/app/components/layout/TopRightButtons.module.css
@@ -10,9 +10,43 @@
}
}
+.supportWrapperCompact {
+ display: none;
+}
+
+.addNewWrapperCompact {
+ display: none;
+}
+
+@media screen and (min-width: 600px) {
+ @container (max-width: 600px) {
+ .supportWrapper {
+ display: none;
+ }
+
+ .supportWrapperCompact {
+ display: block;
+ }
+ }
+
+ @container (max-width: 475px) {
+ .addNewWrapper {
+ display: none;
+ }
+
+ .addNewWrapperCompact {
+ display: block;
+ }
+
+ .searchAndAddContainer {
+ grid-template-columns: 2fr 1fr;
+ }
+ }
+}
+
.searchAndAddContainer {
display: grid;
- grid-template-columns: 2fr 1fr;
+ grid-template-columns: 2fr max-content;
gap: var(--s-2);
}
diff --git a/app/components/layout/TopRightButtons.tsx b/app/components/layout/TopRightButtons.tsx
index c2cbf773a..aeee21216 100644
--- a/app/components/layout/TopRightButtons.tsx
+++ b/app/components/layout/TopRightButtons.tsx
@@ -27,16 +27,27 @@ export function TopRightButtons({
return (
{showSupport ? (
-
- }
- variant="outlined"
- >
- {t("common:pages.support")}
-
-
+ <>
+
+ }
+ variant="outlined"
+ >
+ {t("common:pages.support")}
+
+
+
+ }
+ variant="outlined"
+ shape="square"
+ />
+
+ >
) : null}
{isLoggedIn ? (
<>
@@ -49,6 +60,9 @@ export function TopRightButtons({
+
{onChatToggle ? (
diff --git a/app/components/layout/index.module.css b/app/components/layout/index.module.css
index b366bfc18..950fd8444 100644
--- a/app/components/layout/index.module.css
+++ b/app/components/layout/index.module.css
@@ -4,6 +4,7 @@
}
.header {
+ container-type: inline-size;
display: flex;
width: 100%;
height: var(--layout-nav-height);