From fbe9c7fca44b47f786940aab55b5e849b332928b Mon Sep 17 00:00:00 2001 From: forest Date: Mon, 12 Jul 2021 12:27:07 -0500 Subject: [PATCH] fix last IP address hanging off the end of the display on admin page --- capsulflask/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capsulflask/admin.py b/capsulflask/admin.py index b29574e..8368224 100644 --- a/capsulflask/admin.py +++ b/capsulflask/admin.py @@ -19,7 +19,7 @@ bp = Blueprint("admin", __name__, url_prefix="/admin") def index(): hosts = get_model().list_hosts_with_networks(None) vms_by_host_and_network = get_model().non_deleted_vms_by_host_and_network(None) - network_display_width_px = float(380) + network_display_width_px = float(270) #operations = get_model().list_all_operations() display_hosts = [] @@ -47,7 +47,7 @@ def index(): network_end_int = int(ipv4_address) network['allocations'] = [] - network_addresses_width = float((network_end_int-network_start_int)) + network_addresses_width = float((network_end_int-network_start_int)+1) if host_id in vms_by_host_and_network: if network['network_name'] in vms_by_host_and_network[host_id]: