reduce header size, adjust overview page rows heights

This commit is contained in:
GyulyVGC
2025-03-11 11:42:09 +01:00
parent 62d386244f
commit eb5888e405
3 changed files with 6 additions and 6 deletions

View File

@@ -8,8 +8,8 @@
<a href="https://sniffnet.net"><img alt="" title="Website" src="https://raw.githubusercontent.com/GyulyVGC/sniffnet/main/resources/repository/badges/website.svg"/></a>
<a href="https://github.com/GyulyVGC/sniffnet/wiki"><img alt="" title="Wiki" src="https://raw.githubusercontent.com/GyulyVGC/sniffnet/main/resources/repository/badges/wiki.svg"/></a>
Application to comfortably monitor your Internet traffic <br>
Cross-platform, Intuitive, Reliable
Application to comfortably monitor your Internet traffic.<br>
Cross-platform. Intuitive. Reliable.
Translated in:<br>
🇨🇳 🇩🇪 🇫🇷 🇷🇺 🇵🇹 🇪🇦 🇮🇹 🇵🇱 [+&nbsp;12&nbsp;more&nbsp;languages](https://github.com/GyulyVGC/sniffnet/issues/60)

View File

@@ -49,7 +49,7 @@ pub fn header(sniffer: &Sniffer) -> Container<Message, StyleType> {
.align_y(Alignment::Center)
.height(Length::Fill)
.line_height(LineHeight::Relative(0.7))
.size(90);
.size(80);
Container::new(
Row::new()
@@ -73,7 +73,7 @@ pub fn header(sniffer: &Sniffer) -> Container<Message, StyleType> {
.push(horizontal_space())
.push(get_button_settings(font, language, last_opened_setting)),
)
.height(80)
.height(70)
.align_y(Alignment::Center)
.class(ContainerType::Gradient(color_gradient))
}

View File

@@ -121,7 +121,7 @@ pub fn overview_page(sniffer: &Sniffer) -> Container<Message, StyleType> {
.push(
Row::new()
.spacing(10)
.height(FillPortion(5))
.height(Fill)
.push(container_info)
.push(container_chart),
)
@@ -253,7 +253,7 @@ fn lazy_row_report<'a>(sniffer: &Sniffer) -> Container<'a, Message, StyleType> {
.push(col_service);
Container::new(row_report)
.height(FillPortion(4))
.height(Fill)
.class(ContainerType::BorderedRound)
}