fix(web): composer chip rings no longer clip at the editor edge (#13301)

This commit is contained in:
oliver authored and GitHub committed 2026-09-24 00:35:53 -03:00
1 parent 6b4b19096a
commit 9030a60eaf
3 files changed
+6 -6

No files matched your search

@@ -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}>
<div
className={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,
)}
>
@@ -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 &&
@@ -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}
/>