From 8bfef4c1979a38f7e781505d1d02f9c7e8767901 Mon Sep 17 00:00:00 2001 From: Michael Dennis Date: Sun, 4 Jan 2026 14:25:59 -0600 Subject: [PATCH 1/5] improved responsiveness --- lanscape/ui/static/css/style.css | 19 ++++++++++++++++--- lanscape/ui/templates/main.html | 2 +- lanscape/ui/templates/scan/config.html | 2 +- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/lanscape/ui/static/css/style.css b/lanscape/ui/static/css/style.css index 3de1c74..4933e38 100644 --- a/lanscape/ui/static/css/style.css +++ b/lanscape/ui/static/css/style.css @@ -66,13 +66,16 @@ body:has(.submodule) footer { #header { background-color: var(--primary-bg); - padding: 8px 20px; + padding: 8px 2%; margin: 0; display: block; position: relative; box-shadow: 0 0 10px var(--box-shadow); width: 100vw; } +#header .title { + font-size: 36px; +} footer { position: sticky; @@ -163,8 +166,10 @@ details { #scan-form { - width: 500px; + width: 60vw; margin: 0; + min-width: 300px; + max-width: 700px; } #scan-form label { margin-bottom: 0; @@ -209,6 +214,9 @@ details { width: 30px; right: 0; } +#scan-submit { + padding: inherit 2 +} .label-container { display: flex; @@ -304,6 +312,9 @@ details { } #advanced-modal label { font-size: 12px; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; } #advanced-modal .form-check { width: fit-content; @@ -447,8 +458,10 @@ button { #scan-form #scan-submit { border: none; - padding: 10px 20px; + padding: 10px 3%; margin-top: 15px; + min-width: 55px; + margin: 15px; } /* Button Styling */ diff --git a/lanscape/ui/templates/main.html b/lanscape/ui/templates/main.html index 7939b0e..cb8f647 100644 --- a/lanscape/ui/templates/main.html +++ b/lanscape/ui/templates/main.html @@ -3,7 +3,7 @@ {% block content %} - +
{{ device.ip }}
{% if device.hostname %} -
{{device.hostname}}
+
{{device.hostname}}
{% endif %} - +
{{ device.mac_addr or 'Unknown' }}
{% if device.manufacturer %} -
{{device.manufacturer}}
+ {{device.manufacturer}} {% endif %} - {{ device.ports | join(", ") }} - + {{ device.ports | join(", ") }} + {% if device.stage == 'complete' %} complete {% elif device.stage == 'found' %} diff --git a/lanscape/ui/templates/scan/ip-table.html b/lanscape/ui/templates/scan/ip-table.html index ccab64e..1009366 100644 --- a/lanscape/ui/templates/scan/ip-table.html +++ b/lanscape/ui/templates/scan/ip-table.html @@ -9,10 +9,10 @@ - IP / Host - MAC / Manufacturer - Open Ports - Stage + IP / Host + MAC / Manufacturer + Open Ports + Stage From 013babb743168e8a5c66ed63cdf48c0756e7977c Mon Sep 17 00:00:00 2001 From: Michael Dennis Date: Tue, 6 Jan 2026 09:46:00 -0600 Subject: [PATCH 4/5] fix sast --- lanscape/core/net_tools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lanscape/core/net_tools.py b/lanscape/core/net_tools.py index ccadc4d..a41961f 100644 --- a/lanscape/core/net_tools.py +++ b/lanscape/core/net_tools.py @@ -98,7 +98,10 @@ def get_metadata(self): if self.alive: self.hostname = self._get_hostname() self._get_mac_addresses() - self.manufacturer = self._get_manufacturer(self.get_mac()) + if not self.manufacturer: + self.manufacturer = self._get_manufacturer( + self.get_mac() + ) # Fallback for pydantic v1: use dict() and enrich output if not _PYD_V2: From 4b686b28890d2eef7029352af0f0b9156de0ad82 Mon Sep 17 00:00:00 2001 From: Michael Dennis Date: Tue, 6 Jan 2026 09:47:43 -0600 Subject: [PATCH 5/5] remove wrapper --- lanscape/ui/templates/scan/ip-table-row.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lanscape/ui/templates/scan/ip-table-row.html b/lanscape/ui/templates/scan/ip-table-row.html index d78fb2e..72b00a6 100644 --- a/lanscape/ui/templates/scan/ip-table-row.html +++ b/lanscape/ui/templates/scan/ip-table-row.html @@ -10,7 +10,7 @@
{{ device.ip }}
{% if device.hostname %} -
{{device.hostname}}
+ {{device.hostname}} {% endif %}