2121 }
2222}
2323
24+ /* Global overrides to ensure full width */
25+ :global(html ), :global(body ), :global(#root ) {
26+ width : 100% !important ;
27+ max-width : 100% !important ;
28+ margin : 0 !important ;
29+ padding : 0 !important ;
30+ box-sizing : border-box !important ;
31+ }
32+
33+ /* Override home page chat-panel constraints on chat page */
34+ :global(.chat-panel ) {
35+ width : 100% !important ;
36+ max-width : 100% !important ;
37+ }
38+
39+ /* Debug: Force full width for ALL elements on chat page */
40+ :global([data-testid = " chat-page" ]) * {
41+ max-width : 100% !important ;
42+ box-sizing : border-box !important ;
43+ }
44+
45+ /* Debug: Override any grid or flex constraints */
46+ :global(div ) {
47+ max-width : none !important ;
48+ }
49+
50+ /* Debug: Force full viewport width */
51+ :global(body ) {
52+ overflow-x : hidden !important ;
53+ }
54+
55+ /* Ensure no white space in chat area */
56+ .no-white-space {
57+ margin : 0 !important ;
58+ padding : 0 !important ;
59+ width : 100% !important ;
60+ box-sizing : border-box !important ;
61+ }
62+
63+ /* Force full width for all containers */
64+ .full-width-container {
65+ width : 100vw !important ;
66+ max-width : 100vw !important ;
67+ margin : 0 !important ;
68+ padding : 0 !important ;
69+ box-sizing : border-box !important ;
70+ }
71+
2472table {
2573 border-collapse : collapse ;
2674 width : 100% ;
@@ -40,19 +88,55 @@ table {
4088
4189.grey-background {
4290 background-color : #f0f0f03d ;
91+ width : 100% ;
92+ overflow-x : hidden ; /* Prevent horizontal overflow */
93+ margin : 0 ;
94+ padding : 0 ;
95+ box-sizing : border-box ;
4396}
4497
4598
4699.attachment-tag-container {
47100 display : flex ;
48101 flex-wrap : wrap ;
102+ width : 100% ;
49103}
50104
51105.chat-container {
52106 max-block-size : 75vh ;
107+ width : 100% ;
108+ overflow-x : hidden ; /* Prevent horizontal overflow */
109+ margin : 0 ;
110+ padding : 0 ;
53111}
54112
55113.chatMessagesContainer , .questionContainer {
56- padding-right : 1rem ;
57- padding-left : 1rem ;
114+ padding-right : 0.25rem ;
115+ padding-left : 0.25rem ;
116+ width : 100% !important ;
117+ box-sizing : border-box ; /* Include padding in width calculation */
118+ max-width : 100% !important ; /* Ensure it doesn't exceed container width */
119+ margin : 0 !important ;
120+ }
121+
122+ /* Force Copilot components to take full width */
123+ .chatMessagesContainer :global(fui-CopilotChat) {
124+ width : 100% !important ;
125+ max-width : 100% !important ;
126+ }
127+
128+ .chatMessagesContainer :global([role = " log" ]) {
129+ width : 100% !important ;
130+ max-width : 100% !important ;
131+ margin : 0 !important ;
132+ padding : 0 !important ;
133+ }
134+
135+ /* Ensure all chat message containers take full width */
136+ .chatMessagesContainer :global(.fui-CopilotMessage ),
137+ .chatMessagesContainer :global(.fui-UserMessage ) {
138+ width : 100% !important ;
139+ max-width : 100% !important ;
140+ margin-left : 0 !important ;
141+ margin-right : 0 !important ;
58142}
0 commit comments