TypeScript
fix(web): composer chip rings no longer clip at the editor edge (#13301)
oliver9030a60eafde
diff --git a/apps/web/src/components/ComposerPromptEditorTiptap.tsx b/apps/web/src/components/ComposerPromptEditorTiptap.tsxindex 8af2d18b310..50305ffdbef 100644--- a/apps/web/src/components/ComposerPromptEditorTiptap.tsx+++ b/apps/web/src/components/ComposerPromptEditorTiptap.tsx@@ -718,7 +718,7 @@ function ComposerPromptEditorTiptapInner(props: ComposerPromptEditorProps) {const editorAttributes = useMemo(() => ({class: cn(- "composer-tiptap block max-h-50 min-h-17.5 w-full overflow-y-auto whitespace-pre-wrap wrap-break-word bg-transparent leading-relaxed text-foreground focus:outline-none",+ "composer-tiptap -m-1 block max-h-52 min-h-19.5 overflow-y-auto p-1 whitespace-pre-wrap wrap-break-word bg-transparent leading-relaxed text-foreground focus:outline-none",className,),"data-testid": "composer-editor",@@ -1242,7 +1242,7 @@ function ComposerPromptEditorTiptapInner(props: ComposerPromptEditorProps) {<ComposerCitationCommentContext value={citationCommentActions}><divclassName={cn(- "relative [font-family:var(--font-composer,var(--font-sans))] [font-size:var(--font-size-prompt,0.875rem)] [@media(max-width:39.999rem)_and_(pointer:coarse)]:[font-size:max(var(--font-size-prompt,1rem),16px)]",+ "relative flow-root [font-family:var(--font-composer,var(--font-sans))] [font-size:var(--font-size-prompt,0.875rem)] [@media(max-width:39.999rem)_and_(pointer:coarse)]:[font-size:max(var(--font-size-prompt,1rem),16px)]",containerClassName,)}>diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsxindex b377439882d..15440c577ef 100644--- a/apps/web/src/components/chat/ChatComposer.tsx+++ b/apps/web/src/components/chat/ChatComposer.tsx@@ -6859,10 +6859,10 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)skills={selectedProviderSkills}containerClassName={cn(isComposerResting && "min-w-0 flex-1")}className={cn(- showMobilePendingAnswerActions && "max-sm:pb-11",+ showMobilePendingAnswerActions && "max-sm:pb-12",isComposerResting &&- "max-h-8 min-h-8 overflow-hidden whitespace-pre! leading-8",- isComposerApprovalState && "min-h-8",+ "my-0 max-h-8 min-h-8 overflow-hidden py-0 whitespace-pre! leading-8",+ isComposerApprovalState && "min-h-10",)}placeholderClassName={cn(isComposerResting &&diff --git a/apps/web/src/components/settings/SettingsFontPreviews.tsx b/apps/web/src/components/settings/SettingsFontPreviews.tsxindex 2d64538d5c4..6f392598b9e 100644--- a/apps/web/src/components/settings/SettingsFontPreviews.tsx+++ b/apps/web/src/components/settings/SettingsFontPreviews.tsx@@ -46,7 +46,7 @@ export function PromptFontPreview() {skills={EMPTY_SKILLS}disabled={false}placeholder={DISCONNECTED_COMPOSER_PLACEHOLDER}- className="max-h-40 min-h-12"+ className="max-h-42 min-h-14"onChange={onChange}onPaste={noop}/>