@@ -380,7 +380,7 @@ func (m model) View() string {
380380
381381 if ! m .isInitialized () {
382382 return lipgloss .Place (
383- 200 , 3 ,
383+ m . width , m . height ,
384384 lipgloss .Center ,
385385 lipgloss .Center ,
386386 lipgloss .JoinVertical (lipgloss .Center ,
@@ -389,17 +389,19 @@ func (m model) View() string {
389389 ))
390390 }
391391
392- browserHeader := lipgloss .Place (
393- 200 , 0 ,
394- lipgloss .Center , lipgloss .Center ,
392+ headerStyle := lipgloss .NewStyle ().
393+ Width (m .width ).
394+ Align (lipgloss .Center )
395+
396+ browserHeader := headerStyle .Render (
395397 lipgloss .JoinVertical (lipgloss .Center ,
396398 boldenString ("Inspecting incoming HTTP requests" , true ),
397- boldenString (fmt .Sprintf (`
398- Waiting for requests on %s .. Press Ctrl-y to copy the url. Use ctrl-b to copy the json request body in view.
399- You can use j,k or arrow up and down to navigate your requests` , m . dumpURL ) , true ),
399+ boldenString (fmt .Sprintf ("Waiting for requests on %s" , m . dumpURL ), true ),
400+ boldenString ( " Press Ctrl-y to copy the url. Use ctrl-b to copy the json request body in view." , true ),
401+ boldenString ( " You can use j,k or arrow up and down to navigate your requests" , true ),
400402 ))
401403
402- return m .spinner .View () + browserHeader + strings . Repeat ( "\n " , 2 ) + m .makeTable ()
404+ return m .spinner .View () + " \n " + browserHeader + "\n " + m .makeTable ()
403405}
404406
405407func (m model ) buildView () string {
0 commit comments