mirror of
https://github.com/veops/oneterm.git
synced 2025-09-27 03:36:02 +08:00
ix(sshsrv): remove table width constraint to fix terminal resize issues
This commit is contained in:
@@ -63,6 +63,7 @@ func SetupRouter(r *gin.Engine) {
|
||||
account.PUT("/:id", c.UpdateAccount)
|
||||
account.GET("", c.GetAccounts)
|
||||
account.POST("/:id/credentials", c.GetAccountCredentials)
|
||||
account.GET("/:id/credentials2", c.GetAccountCredentials2)
|
||||
}
|
||||
|
||||
asset := v1.Group("asset")
|
||||
|
@@ -405,10 +405,8 @@ func (m Model) View() string {
|
||||
// Use the table component's view directly
|
||||
tableView := m.table.View()
|
||||
|
||||
// Apply base style with proper width
|
||||
// Don't apply height constraint, let the table manage its own viewport
|
||||
// Apply base style without width constraint - let table determine its own width
|
||||
tableBox := baseStyle.
|
||||
Width(m.width - 2).
|
||||
Render(tableView)
|
||||
|
||||
result := resetCursor + header + "\n" + tableBox + "\n" + help
|
||||
|
Reference in New Issue
Block a user