diff --git a/assets/index.css b/assets/index.css index 71dd9474..270a70fc 100644 --- a/assets/index.css +++ b/assets/index.css @@ -6,6 +6,7 @@ color: inherit; font: inherit; box-sizing: inherit; + line-height: inherit; } html { @@ -14,6 +15,7 @@ html { font-size: 18px; text-decoration: none; height: 100%; + line-height: 1.4; } body { @@ -29,6 +31,11 @@ img { height: auto; } +.path-list > li { + margin-left: 1rem; + font-family: monospace; +} + .root { flex: 0 0; display: flex; @@ -73,6 +80,14 @@ img { font-weight: bold; } +.main-section:not(:last-of-type) { + margin-bottom: 1rem; +} + +.section-title { + font-size: 1.8rem; +} + .button-list { flex: 0 0; display: flex; @@ -114,16 +129,17 @@ img { .imfs-entry-name { position: relative; + font-family: monospace; } .imfs-entry-children .imfs-entry-name::before { content: ""; - width: 0.8rem; + width: 0.6em; height: 1px; background-color: #999; position: absolute; top: 50%; - left: -1rem; + left: -0.8em; } .imfs-entry-note { @@ -131,6 +147,7 @@ img { } .imfs-entry-children { - padding-left: 1rem; + padding-left: 0.8em; + margin-left: 0.2em; border-left: 1px solid #999; } \ No newline at end of file diff --git a/src/web/ui.rs b/src/web/ui.rs index a2b95713..973e5845 100644 --- a/src/web/ui.rs +++ b/src/web/ui.rs @@ -104,10 +104,28 @@ impl UiService { .map(|path| Self::render_imfs_path(&imfs, path, true)) .collect(); + let watched_list: Vec<_> = imfs + .debug_watched_paths() + .into_iter() + .map(|path| { + html! { +
  • { format!("{}", path.display()) }
  • + } + }) + .collect(); + let page = self.normal_page(html! { -
    - { Fragment::new(orphans) } -
    + <> +
    +

    "Known FS Items"

    +
    { Fragment::new(orphans) }
    +
    + +
    +

    "Watched Paths"

    +
      { Fragment::new(watched_list) }
    +
    + }); Response::builder() @@ -140,7 +158,7 @@ impl UiService { let note = if is_exhaustive { HtmlContent::None } else { - html!({ " (non-exhaustive)" }) + html!({ " (not enumerated)" }) }; (note, children)