From 58c0c1fe77b2aba256b027c9630b41d030f948d9 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 27 Mar 2021 22:45:38 +0700 Subject: _www: display list of HTTP and WebSocket target on navigation While at it, fix height and autoscroll on left navigation. --- _www/index.css | 12 ++++++++++-- _www/index.html | 6 +++--- _www/index.js | 56 +++++++++++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 60 insertions(+), 14 deletions(-) diff --git a/_www/index.css b/_www/index.css index 18f5855..cadad8f 100644 --- a/_www/index.css +++ b/_www/index.css @@ -26,16 +26,24 @@ body { } .nav { - height: calc(100% - 2em); + height: calc(100% - 4em); padding: 1em; position: fixed; width: 14em; border-right: 1px solid lightgrey; + overflow: auto; +} +.nav .navTarget { + cursor: pointer; + margin-bottom: 1em; } -.nav .nav-item { +.nav .navHttpTarget, +.nav .navWebSocketTarget { cursor: pointer; margin-bottom: 1em; + margin-left: 1em; } + .nav .footer { bottom: 0; font-size: 9pt; diff --git a/_www/index.html b/_www/index.html index f753ed4..fb6fc52 100644 --- a/_www/index.html +++ b/_www/index.html @@ -12,11 +12,11 @@