📱 fix: hide keyboard shortcuts trigger on mobile
This commit is contained in:
@@ -153,8 +153,8 @@ const ATTACH_BTN_CLASSES = "gap-1.5 text-xs";
|
||||
/** Generate button: right side, primary variant, labeled */
|
||||
const GENERATE_BTN_CLASSES = "gap-1.5 text-xs";
|
||||
|
||||
/** Info popover trigger: ghost icon button, sits left of Generate */
|
||||
const INFO_TRIGGER_CLASSES = "h-6 w-6";
|
||||
/** Info popover trigger: hidden on mobile, small on desktop so it stays secondary */
|
||||
const INFO_TRIGGER_CLASSES = "hidden h-6 w-6 md:inline-flex";
|
||||
|
||||
describe("Composer footer bar – layout contract", () => {
|
||||
test("footer row uses justify-between so Attach sits left and Generate sits right", () => {
|
||||
@@ -185,6 +185,12 @@ describe("Composer footer bar – layout contract", () => {
|
||||
});
|
||||
|
||||
describe("Info popover trigger – size contract", () => {
|
||||
test("info trigger is hidden on mobile so keyboard-only guidance does not appear in touch layouts", () => {
|
||||
const resolved = cn(INFO_TRIGGER_CLASSES);
|
||||
expect(resolved).toContain("hidden");
|
||||
expect(resolved).toContain("md:inline-flex");
|
||||
});
|
||||
|
||||
test("info trigger is small (h-6 w-6) so it doesn't compete with Generate", () => {
|
||||
const resolved = cn(INFO_TRIGGER_CLASSES);
|
||||
expect(resolved).toContain("h-6");
|
||||
|
||||
Reference in New Issue
Block a user