layout, minimized spaces between border

This commit is contained in:
Stefan Etringer 2025-06-30 15:32:28 +00:00
parent 7dc2f5c5c7
commit 40b552fd7b
3 changed files with 15 additions and 7 deletions

View File

@ -8,7 +8,7 @@ GOBIN := /usr/bin
BUILD_DIR = build
BINARY = $(BUILD_DIR)/$(APP_NAME)
.PHONY: all build help clean install uninstall
.PHONY: all build help clean install uninstall #build-static
all: build
@ -20,6 +20,10 @@ install: build ## Install the application
@echo "Installing $(APP_NAME)..."
GOBIN=$(GOBIN) $(GO_INSTALL)
# build-static: ## Build a static application
# @echo "Building static $(APP_NAME)..."
# CGO_ENABLED=0 $(GO_BUILD) --ldflags '-extldflags=-static -w -s' -o $(BINARY)-static
uninstall: clean ## Remove build artifacts
@echo "Removing installed binary..."
rm -f $(GOBIN)/$(APP_NAME)

View File

@ -30,9 +30,9 @@
</button>
<div class="container-fluid px-4 py-3 pb-5">
<div class="row g-4">
<div class="row g-2">
<!-- Agent List -->
<div class="col-12 col-md-6 pb-4">
<div class="col-12 col-md-6">
<!-- <h3>Agents</h3> -->
<div class="table-responsive">
<div id="agentList"
@ -46,7 +46,7 @@
<!-- Right Column: Logs and Graph -->
<!-- <div class="col-12 col-md-6 d-flex flex-column"> -->
<!-- Right Column: Logs and Graph -->
<div class="col-12 col-md-6 d-flex flex-column" style="height: calc(100vh - 120px);">
<div class="col-12 col-md-6 d-flex flex-column" style="height: calc(100vh - 105px);">
<!-- Logs (2/3 of height) -->
<div class="d-flex flex-column" style="flex: 2 1 0; min-height: 0;">
<form id="log-filter-form"
@ -75,7 +75,7 @@
</div>
<!-- Graph (1/3 of height) -->
<div class="d-flex flex-column mt-3" style="flex: 1 1 0; min-height: 0;">
<div class="d-flex flex-column mt-2" style="flex: 1 1 0; min-height: 0;">
<div class="border flex-grow-1" id="cyto-graph" style="overflow-y: auto;">
<!-- Graph content -->
</div>

View File

@ -9,6 +9,10 @@
<p>Last Contact: {{.LastContact}}</p>
<p>Hostname: {{.HostName}}</p>
<!-- <button class="btn btn-warning" hx-get="/proxyAgent?ip={{.IPv4Address}}&port={{.AddPort}}" hx-target="#agentConnect" hx-swap="innerHTML">Proxy</button> -->
<a class="btn btn-warning" href="/proxyAgent?ip={{.IPv4Address}}&port={{.AddPort}}" hx-target="_blank">Proxy</a>
<a href="http://{{.IPv4Address}}:{{.AddPort}}" class="btn btn-info" target="_blank">Open</a>
<a class="btn btn-info"
href="/proxyAgent?ip={{.IPv4Address}}&port={{.AddPort}}"
hx-target="_blank"
target="_blank">Connect via Proxy</a>
<a href="http://{{.IPv4Address}}:{{.AddPort}}" class="btn btn-outline-info" target="_blank">Connect without Proxy</a>
<!-- <a href="http://{{.IPv4Address}}:{{.AddPort}}" target="_blank">Connect without Proxy</a> -->
</div>