mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-08 12:21:09 +03:00
tui: adjust the table column width (#1848)
This commit is contained in:
parent
495c9ded58
commit
6a788e8a9a
2 changed files with 6 additions and 6 deletions
|
@ -185,9 +185,9 @@ impl TUIStatusListener for TUIMiningView {
|
||||||
}).column(StratumWorkerColumn::IsConnected, "Connected", |c| {
|
}).column(StratumWorkerColumn::IsConnected, "Connected", |c| {
|
||||||
c.width_percent(10)
|
c.width_percent(10)
|
||||||
}).column(StratumWorkerColumn::LastSeen, "Last Seen", |c| {
|
}).column(StratumWorkerColumn::LastSeen, "Last Seen", |c| {
|
||||||
c.width_percent(20)
|
c.width_percent(16)
|
||||||
}).column(StratumWorkerColumn::PowDifficulty, "Pow Difficulty", |c| {
|
}).column(StratumWorkerColumn::PowDifficulty, "Pow Difficulty", |c| {
|
||||||
c.width_percent(10)
|
c.width_percent(14)
|
||||||
}).column(StratumWorkerColumn::NumAccepted, "Num Accepted", |c| {
|
}).column(StratumWorkerColumn::NumAccepted, "Num Accepted", |c| {
|
||||||
c.width_percent(10)
|
c.width_percent(10)
|
||||||
}).column(StratumWorkerColumn::NumRejected, "Num Rejected", |c| {
|
}).column(StratumWorkerColumn::NumRejected, "Num Rejected", |c| {
|
||||||
|
|
|
@ -122,12 +122,12 @@ impl TUIStatusListener for TUIPeerView {
|
||||||
fn create() -> Box<View> {
|
fn create() -> Box<View> {
|
||||||
let table_view = TableView::<PeerStats, PeerColumn>::new()
|
let table_view = TableView::<PeerStats, PeerColumn>::new()
|
||||||
.column(PeerColumn::Address, "Address", |c| c.width_percent(16))
|
.column(PeerColumn::Address, "Address", |c| c.width_percent(16))
|
||||||
.column(PeerColumn::State, "State", |c| c.width_percent(16))
|
.column(PeerColumn::State, "State", |c| c.width_percent(8))
|
||||||
.column(PeerColumn::UsedBandwidth, "Used bandwidth", |c| {
|
.column(PeerColumn::UsedBandwidth, "Used bandwidth", |c| {
|
||||||
c.width_percent(16)
|
c.width_percent(24)
|
||||||
}).column(PeerColumn::Direction, "Direction", |c| c.width_percent(16))
|
}).column(PeerColumn::Direction, "Direction", |c| c.width_percent(8))
|
||||||
.column(PeerColumn::TotalDifficulty, "Total Difficulty", |c| {
|
.column(PeerColumn::TotalDifficulty, "Total Difficulty", |c| {
|
||||||
c.width_percent(16)
|
c.width_percent(24)
|
||||||
}).column(PeerColumn::Version, "Version", |c| c.width_percent(16));
|
}).column(PeerColumn::Version, "Version", |c| c.width_percent(16));
|
||||||
let peer_status_view = BoxView::with_full_screen(
|
let peer_status_view = BoxView::with_full_screen(
|
||||||
LinearLayout::new(Orientation::Vertical)
|
LinearLayout::new(Orientation::Vertical)
|
||||||
|
|
Loading…
Reference in a new issue