diff --git a/meshview/templates/nodegraph.html b/meshview/templates/nodegraph.html index 44c5f0d..815654e 100644 --- a/meshview/templates/nodegraph.html +++ b/meshview/templates/nodegraph.html @@ -8,68 +8,99 @@ #mynetwork { width: 100%; height: 100vh; - max-width: 2000px; - max-height: 2000px; - border: 1px solid lightgray; - background-color: white; + border: 1px solid #ddd; + background-color: #f8f9fa; + border-radius: 10px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } -.legend { +.search-container { position: absolute; - bottom: 10px; + top: 10px; left: 10px; - background-color: rgba(255, 255, 255, 0.8); - padding: 5px; - border-radius: 5px; + z-index: 10; + display: flex; + gap: 5px; +} + +.search-container input { + padding: 8px; + border-radius: 8px; border: 1px solid #ccc; - font-size: 12px; - color: #333; +} + +.search-container button { + padding: 8px 12px; + border-radius: 8px; + border: none; + background-color: #007bff; + color: white; + cursor: pointer; +} + +.search-container button:hover { + background-color: #0056b3; } #node-info { position: absolute; bottom: 10px; right: 10px; - background-color: rgba(255, 255, 255, 0.9); + background-color: rgba(255, 255, 255, 0.95); + padding: 12px; + border-radius: 8px; + border: 1px solid #ccc; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); + font-size: 14px; + color: #333; + width: 260px; + max-height: 250px; + overflow-y: auto; +} + +#legend { + position: absolute; + bottom: 10px; + left: 10px; + background: rgba(255, 255, 255, 0.9); padding: 10px; border-radius: 5px; border: 1px solid #ccc; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); font-size: 14px; - color: #333; - width: 250px; - max-height: 200px; - overflow-y: auto; +} + +.legend-box { + display: inline-block; + width: 12px; + height: 12px; + margin-right: 5px; + border-radius: 3px; } {% endblock %} {% block body %} -