Skip to content

Commit d71fe0a

Browse files
committed
fix notifications page padding
1 parent e3377a0 commit d71fe0a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/gui/pages/notifications_page.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use iced::widget::text::LineHeight;
44
use iced::widget::tooltip::Position;
55
use iced::widget::{Column, Container, Row, Scrollable, Text, Tooltip};
66
use iced::widget::{Space, button, vertical_space};
7-
use iced::{Alignment, Font, Length};
7+
use iced::{Alignment, Font, Length, Padding};
88
use std::fmt::Write;
99

1010
use crate::chart::types::chart_type::ChartType;
@@ -54,7 +54,7 @@ pub fn notifications_page(sniffer: &Sniffer) -> Container<Message, StyleType> {
5454
sniffer.unread_notifications,
5555
);
5656

57-
tab_and_body = tab_and_body.push(tabs).push(Space::with_height(15));
57+
tab_and_body = tab_and_body.push(tabs);
5858

5959
if notifications.packets_notification.threshold.is_none()
6060
&& notifications.bytes_notification.threshold.is_none()
@@ -69,14 +69,14 @@ pub fn notifications_page(sniffer: &Sniffer) -> Container<Message, StyleType> {
6969
} else {
7070
let logged_notifications = logged_notifications(sniffer);
7171
let body_row = Row::new()
72+
.padding(Padding::new(10.0).bottom(0))
7273
.width(Length::Fill)
7374
.push(
7475
Container::new(if sniffer.logged_notifications.len() < 30 {
7576
Text::new("")
7677
} else {
7778
Text::new(only_last_30_translation(language)).font(font)
7879
})
79-
.padding(10)
8080
.width(Length::Fill)
8181
.height(Length::Fill)
8282
.align_x(Alignment::Center)
@@ -369,7 +369,6 @@ fn logged_notifications<'a>(sniffer: &Sniffer) -> Column<'a, Message, StyleType>
369369
let font = style.get_extension().font;
370370
let mut ret_val = Column::new()
371371
.width(830)
372-
.padding(5)
373372
.spacing(10)
374373
.align_x(Alignment::Center);
375374

0 commit comments

Comments
 (0)