Skip to content

Commit c44e8ae

Browse files
i-subham23ankit-thesysclaude
authored
style(react-ui): adjust max-width and padding for conversation starter component (#810)
* style(react-ui): adjust max-width and padding for conversation starter component Updated the max-width of the conversation starter to align with the composer box across breakpoints, ensuring proper alignment of pills with the input. Adjusted padding for better spacing consistency. * style(react-ui): remove outdated comments in conversation starter SCSS Cleaned up the conversation starter component's SCSS by removing obsolete comments regarding alignment with the composer box, enhancing code clarity and maintainability. * style(react-ui): track the composer column for conversation starters Base the starter container on the composer's 768px column instead of the 880px thread column. The chips sit above the input, and once both hit max-width they center independently — an 880 base left the row starting 56px outside the input's edge on wide screens. With the composer column the chip row aligns with the input at every desktop width; the narrow- width gutter fix is unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XECS4NLhz6BNd1TUYbWjfu --------- Co-authored-by: ankit-thesys <i-ankit@thesys.dev> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 078e6db commit c44e8ae

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/react-ui/src/components/AgentInterface/conversationStarter.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
// Container styles
44
.openui-agent-conversation-starter {
55
width: 100%;
6-
max-width: 880px;
6+
// Starters sit above the composer input, so track the composer's 768px
7+
// column (see components/composer.scss), not the 880px thread column —
8+
// otherwise the row starts left of the input once both hit max-width.
9+
max-width: calc(768px + cssUtils.$space-m-l * 2);
710
margin: 0 auto;
8-
padding: 0 0 cssUtils.$space-m;
11+
padding: 0 cssUtils.$space-m-l cssUtils.$space-m;
912
box-sizing: border-box;
1013
max-height: 480px;
1114
overflow: hidden;
@@ -16,7 +19,6 @@
1619
transform 0.2s ease,
1720
max-height 0.2s ease,
1821
padding-bottom 0.2s ease;
19-
2022
// Short variant - horizontal pill buttons
2123
&--short {
2224
display: block;

0 commit comments

Comments
 (0)