Skip to content

Commit

Permalink
style(term): remove right padding for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Jun 2, 2024
1 parent 470cd02 commit 79b59ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
10 changes: 2 additions & 8 deletions crates/synd_term/src/ui/components/entries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,7 @@ impl Entries {
}

fn render_entries(&self, area: Rect, buf: &mut Buffer, cx: &Context<'_>) {
let entries_area = Block::new()
.padding(Padding {
top: 1,
left: 0,
right: 1,
bottom: 0,
})
.inner(area);
let entries_area = Block::new().padding(Padding::top(1)).inner(area);

let mut entries_state = TableState::new()
.with_offset(0)
Expand Down Expand Up @@ -161,6 +154,7 @@ impl Entries {
.end_symbol(None)
.track_symbol(Some(" "))
.thumb_symbol("▐")
.style(cx.theme.base)
.render(scrollbar_area, buf, &mut scrollbar_state);
}

Expand Down
10 changes: 2 additions & 8 deletions crates/synd_term/src/ui/components/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,7 @@ impl Subscription {
}

fn render_feeds(&self, area: Rect, buf: &mut Buffer, cx: &Context<'_>) {
let feeds_area = Block::new()
.padding(Padding {
top: 1,
left: 0,
right: 1,
bottom: 0,
})
.inner(area);
let feeds_area = Block::new().padding(Padding::top(1)).inner(area);

let mut feeds_state = TableState::new()
.with_offset(0)
Expand Down Expand Up @@ -225,6 +218,7 @@ impl Subscription {
.end_symbol(None)
.track_symbol(Some(" "))
.thumb_symbol("▐")
.style(cx.theme.base)
.render(scrollbar_area, buf, &mut scrollbar_state);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Buffer {
" 󰈶 Filter MAY ",
"  Search ",
" ",
"  Published 󰯂 Entry -/- 󰑫 Feed  Req ",
"  Published 󰯂 Entry -/- 󰑫 Feed  Req",
" ",
" ",
" ",
Expand Down Expand Up @@ -50,7 +50,7 @@ Buffer {
x: 2, y: 2, fg: Rgb(254, 205, 178), bg: Rgb(43, 41, 45), underline: Reset, modifier: DIM,
x: 10, y: 2, fg: Rgb(254, 205, 178), bg: Rgb(43, 41, 45), underline: Reset, modifier: NONE,
x: 0, y: 4, fg: Rgb(254, 205, 178), bg: Rgb(43, 41, 45), underline: Reset, modifier: BOLD | UNDERLINED,
x: 119, y: 4, fg: Rgb(254, 205, 178), bg: Rgb(43, 41, 45), underline: Reset, modifier: NONE,
x: 0, y: 5, fg: Rgb(254, 205, 178), bg: Rgb(43, 41, 45), underline: Reset, modifier: NONE,
x: 44, y: 29, fg: Rgb(111, 93, 99), bg: Rgb(43, 41, 45), underline: Reset, modifier: NONE,
x: 104, y: 29, fg: Rgb(254, 205, 178), bg: Rgb(43, 41, 45), underline: Reset, modifier: NONE,
]
Expand Down

0 comments on commit 79b59ca

Please sign in to comment.