ix(sshsrv): remove table width constraint to fix terminal resize issues

This commit is contained in:
pycook
2025-08-12 20:36:40 +08:00
parent 9d73b72e72
commit 585de96cab
2 changed files with 2 additions and 3 deletions

View File

@@ -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")

View File

@@ -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