File tree Expand file tree Collapse file tree 1 file changed +19
-9
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -1216,17 +1216,27 @@ impl ChatSession {
12161216 // Only show if we haven't reached the max count
12171217 if show_count < KIRO_UPGRADE_MAX_SHOW_COUNT {
12181218 let announcement_with_styling = crate :: constants:: kiro_upgrade_announcement ( ) ;
1219+ let is_small_screen = self . terminal_width ( ) < GREETING_BREAK_POINT ;
12191220
1220- draw_box (
1221- & mut self . stderr ,
1222- "" ,
1223- & announcement_with_styling,
1224- GREETING_BREAK_POINT ,
1225- crate :: theme:: theme ( ) . ui . secondary_text ,
1226- Some ( crate :: cli:: chat:: util:: ui:: TextAlign :: Left ) ,
1227- ) ?;
1221+ if is_small_screen {
1222+ // If the screen is small, print the announcement without a box
1223+ execute ! (
1224+ self . stderr,
1225+ style:: Print ( & announcement_with_styling) ,
1226+ style:: Print ( "\n " )
1227+ ) ?;
1228+ } else {
1229+ draw_box (
1230+ & mut self . stderr ,
1231+ "" ,
1232+ & announcement_with_styling,
1233+ GREETING_BREAK_POINT ,
1234+ crate :: theme:: theme ( ) . ui . secondary_text ,
1235+ Some ( crate :: cli:: chat:: util:: ui:: TextAlign :: Left ) ,
1236+ ) ?;
12281237
1229- execute ! ( self . stderr, style:: Print ( "\n " ) ) ?;
1238+ execute ! ( self . stderr, style:: Print ( "\n " ) ) ?;
1239+ }
12301240
12311241 // Update the show count
12321242 os. database . set_kiro_upgrade_show_count ( show_count + 1 ) ?;
You can’t perform that action at this time.
0 commit comments