Skip to content

Commit

Permalink
Move gauge to third row
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Sep 15, 2020
1 parent fe260b7 commit 665531a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,25 @@ func gridLayout(w *widgets) ([]container.Option, error) {
raw1 := grid.RowHeightPerc(60,
grid.ColWidthPerc(99, grid.Widget(w.latencyChart, container.Border(linestyle.Light), container.BorderTitle("Latency (ms)"))),
)
raw2 := grid.RowHeightPerc(34,
raw2 := grid.RowHeightPerc(35,
grid.ColWidthPerc(64,
grid.RowHeightPerc(29, grid.Widget(w.urlInput, container.Border(linestyle.None))),
grid.RowHeightPerc(29,
grid.RowHeightPerc(33, grid.Widget(w.urlInput, container.Border(linestyle.None))),
grid.RowHeightPerc(33,
grid.ColWidthPerc(33, grid.Widget(w.rateLimitInput, container.Border(linestyle.None))),
grid.ColWidthPerc(33, grid.Widget(w.durationInput, container.Border(linestyle.None))),
grid.ColWidthPerc(33, grid.Widget(w.timeoutInput, container.Border(linestyle.None))),
),
grid.RowHeightPerc(29,
grid.RowHeightPerc(33,
grid.ColWidthPerc(33, grid.Widget(w.methodInput, container.Border(linestyle.None))),
grid.ColWidthPerc(33, grid.Widget(w.headerInput, container.Border(linestyle.None))),
grid.ColWidthPerc(33, grid.Widget(w.bodyInput, container.Border(linestyle.None))),
),
grid.RowHeightPerc(12, grid.Widget(w.progressGauge, container.Border(linestyle.None))),
),
grid.ColWidthPerc(35, grid.Widget(w.reportText, container.Border(linestyle.Light), container.BorderTitle("Report"))),
)
raw3 := grid.RowHeightFixed(1,
grid.ColWidthFixed(100, grid.Widget(w.navi, container.Border(linestyle.Light))),
raw3 := grid.RowHeightPerc(4,
grid.ColWidthPerc(64, grid.Widget(w.progressGauge, container.Border(linestyle.None))),
grid.ColWidthPerc(33, grid.Widget(w.navi, container.Border(linestyle.Light))),
)

builder := grid.New()
Expand Down
4 changes: 2 additions & 2 deletions gui/widgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func newWidgets() (*widgets, error) {
if err != nil {
return nil, err
}
progressDonut, err := newGauge()
progressGauge, err := newGauge()
if err != nil {
return nil, err
}
Expand All @@ -85,7 +85,7 @@ func newWidgets() (*widgets, error) {
timeoutInput: timeoutInput,
latencyChart: latencyChart,
reportText: reportText,
progressGauge: progressDonut,
progressGauge: progressGauge,
navi: navi,
}, nil
}
Expand Down

0 comments on commit 665531a

Please sign in to comment.