diff --git a/src/views/projects/Source.svelte b/src/views/projects/Source.svelte index edd43b976..985b186f4 100644 --- a/src/views/projects/Source.svelte +++ b/src/views/projects/Source.svelte @@ -29,6 +29,12 @@ // Whether the mobile file tree is visible. let mobileFileTree = false; + let treeElement: HTMLElement | undefined = undefined; + let treeOverflow: boolean = false; + + $: if (treeElement) { + treeOverflow = treeElement.scrollHeight > treeElement.offsetHeight; + } const api = new HttpdClient(baseUrl); @@ -98,6 +104,10 @@ width: 17.5rem; padding-right: 0.25rem; } + .source-tree-overflow { + border-bottom: 1px solid var(--color-fill-separator); + border-top: 1px solid var(--color-fill-separator); + } .sticky { position: sticky; top: 2rem; @@ -174,7 +184,10 @@
{#if tree.entries.length > 0}
-
+