@@ -77,8 +77,11 @@ html.m_mobile #__next {
7777 --category-nav-display : none ;
7878 }
7979
80- .btnOpenChatBox {
81- display : none ;
80+ // Hide the grouped buttons and comment button on mobile - only show single chat button
81+ .ha-wrap {
82+ .ha-group {
83+ display : none !important ;
84+ }
8285 }
8386
8487 // Editor is the ONLY scrollable element - prevents iOS keyboard glitch
@@ -150,18 +153,88 @@ html.m_mobile #__next {
150153 }
151154
152155 .title {
153- padding-right : 50 px ;
156+ padding-right : 70 px ;
154157 position : relative ;
155158
156- // iOS Safari fix: position button absolutely to not interfere with text caret
157- .btnOpenChatBox {
159+ .ha-wrap {
158160 position : absolute !important ;
159161 right : 0 ;
160162 top : 50% ;
161163 transform : translateY (-50% );
162- // Remove from text flow so iOS Safari can position caret correctly
163- float : none !important ;
164- display : flex !important ;
164+
165+ .ha-single.btnOpenChatBox {
166+ // Force visibility - override desktop hidden styles
167+ display : flex !important ;
168+ visibility : visible !important ;
169+ opacity : 1 !important ;
170+
171+ // Reset positioning - override desktop absolute positioning
172+ position : absolute !important ;
173+ right : -12px !important ;
174+ left : auto !important ;
175+ top : auto !important ;
176+ transform : none !important ;
177+
178+ // Pill style base
179+ align-items : center ;
180+ justify-content : center ;
181+ gap : 6px ;
182+ padding : 4px 6px 4px 10px ;
183+ min-width : auto ;
184+ width : auto ;
185+ height : 28px ;
186+ min-height : 28px !important ;
187+ background-color : var (--bg-docy , #2778ff );
188+ border-radius : 8px 0 0 8px !important ;
189+ border : none ;
190+ box-shadow : 0 2px 6px rgba (0 , 0 , 0 , 0.2 );
191+
192+ // Override size classes
193+ & .size-12 {
194+ width : auto ;
195+ height : 28px ;
196+ }
197+
198+ svg .chatLeft {
199+ width : 16px ;
200+ height : 16px ;
201+ flex-shrink : 0 ;
202+ }
203+
204+ // Hide desktop badge pseudo-elements
205+ & ::after {
206+ display : none !important ;
207+ }
208+
209+ // Default: just show chat icon (no count)
210+ & ::before {
211+ display : none !important ;
212+ }
213+
214+ & [data-unread-count ]:not ([data-unread-count = ' ' ]) {
215+ padding-left : 4px ;
216+
217+ & ::before {
218+ content : attr (data-unread-count );
219+ display : flex !important ;
220+ align-items : center ;
221+ justify-content : center ;
222+ min-width : 20px ;
223+ height : 20px ;
224+ padding : 0 4px ;
225+ background-color : rgba (0 , 0 , 0 , 0.25 );
226+ border-radius : 6px ;
227+ color : #fff ;
228+ font-size : 11px ;
229+ font-weight : 600 ;
230+ order : -1 ;
231+ position : static !important ;
232+ top : auto !important ;
233+ left : auto !important ;
234+ right : auto !important ;
235+ }
236+ }
237+ }
165238 }
166239 }
167240
0 commit comments