mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-18 19:50:38 +09:00
Tighten issue chat composer height cap
This commit is contained in:
parent
cbc237311f
commit
ba5cb34bed
2 changed files with 2 additions and 2 deletions
|
|
@ -282,7 +282,7 @@ describe("IssueChatThread", () => {
|
||||||
expect(composer?.className).toContain("pb-[calc(env(safe-area-inset-bottom)+0.75rem)]");
|
expect(composer?.className).toContain("pb-[calc(env(safe-area-inset-bottom)+0.75rem)]");
|
||||||
|
|
||||||
const editor = container.querySelector('textarea[aria-label="Issue chat editor"]') as HTMLTextAreaElement | null;
|
const editor = container.querySelector('textarea[aria-label="Issue chat editor"]') as HTMLTextAreaElement | null;
|
||||||
expect(editor?.dataset.contentClassName).toContain("max-h-[40dvh]");
|
expect(editor?.dataset.contentClassName).toContain("max-h-[28dvh]");
|
||||||
expect(editor?.dataset.contentClassName).toContain("overflow-y-auto");
|
expect(editor?.dataset.contentClassName).toContain("overflow-y-auto");
|
||||||
|
|
||||||
act(() => {
|
act(() => {
|
||||||
|
|
|
||||||
|
|
@ -1532,7 +1532,7 @@ const IssueChatComposer = forwardRef<IssueChatComposerHandle, IssueChatComposerP
|
||||||
imageUploadHandler={onImageUpload}
|
imageUploadHandler={onImageUpload}
|
||||||
bordered
|
bordered
|
||||||
className="rounded-xl border-border/70 bg-background/95"
|
className="rounded-xl border-border/70 bg-background/95"
|
||||||
contentClassName="min-h-[72px] max-h-[40dvh] overflow-y-auto pr-1 text-sm scrollbar-auto-hide"
|
contentClassName="min-h-[72px] max-h-[28dvh] overflow-y-auto pr-1 text-sm scrollbar-auto-hide"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="flex flex-wrap items-center justify-end gap-3 border-t border-border/60 pt-2">
|
<div className="flex flex-wrap items-center justify-end gap-3 border-t border-border/60 pt-2">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue