Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix indentation
Alexis Sellier committed 4 years ago
commit 145f479a42d29c456bc369dbf0c24a2a513499b6
parent ddf7b27f551021554389861fd2f5991122ac2e44
1 file changed +38 -38
modified src/base/projects/Browser.svelte
@@ -177,45 +177,45 @@
</style>

<main>
-
    <!-- Mobile navigation -->
-
    <nav class="mobile">
-
      <button class="small browse secondary center-content" on:click={toggleMobileFileTree}>
-
        Browse
-
      </button>
-
    </nav>
-

-
    <div class="container center-content">
-
      {#if tree.entries.length}
-
        <div class="column-left" class:column-left-visible={mobileFileTree}>
-
          <div class="source-tree">
-
            <Tree {tree} {path} {fetchTree} {loadingPath} on:select={onSelect} />
-
          </div>
+
  <!-- Mobile navigation -->
+
  <nav class="mobile">
+
    <button class="small browse secondary center-content" on:click={toggleMobileFileTree}>
+
      Browse
+
    </button>
+
  </nav>
+

+
  <div class="container center-content">
+
    {#if tree.entries.length}
+
      <div class="column-left" class:column-left-visible={mobileFileTree}>
+
        <div class="source-tree">
+
          <Tree {tree} {path} {fetchTree} {loadingPath} on:select={onSelect} />
        </div>
-
        <div class="column-right">
-
          {#await getBlob}
-
            <Loading small center />
-
          {:then blob}
-
            {#if utils.isMarkdownPath(blob.path)}
-
              <Readme content={blob.content} />
+
      </div>
+
      <div class="column-right">
+
        {#await getBlob}
+
          <Loading small center />
+
        {:then blob}
+
          {#if utils.isMarkdownPath(blob.path)}
+
            <Readme content={blob.content} />
+
          {:else}
+
            <Blob {blob} />
+
          {/if}
+
        {:catch}
+
          <div class="error error-message file-not-found">
+
            <header>
+
              <div class="icon">🍂</div>
+
              {#if path != "/"}
+
                <div><code>{path}</code></div>
+
              {/if}
+
            </header>
+
            {#if path == "/"}
+
              The README could not be loaded.
            {:else}
-
              <Blob {blob} />
+
              This path could not be loaded.
            {/if}
-
          {:catch}
-
            <div class="error error-message file-not-found">
-
              <header>
-
                <div class="icon">🍂</div>
-
                {#if path != "/"}
-
                  <div><code>{path}</code></div>
-
                {/if}
-
              </header>
-
              {#if path == "/"}
-
                The README could not be loaded.
-
              {:else}
-
                This path could not be loaded.
-
              {/if}
-
            </div>
-
          {/await}
-
        </div>
-
      {/if}
-
    </div>
+
          </div>
+
        {/await}
+
      </div>
+
    {/if}
+
  </div>
</main>