Skip to content

Commit

Permalink
fix: sider create box align
Browse files Browse the repository at this point in the history
  • Loading branch information
hehehai committed Jun 10, 2022
1 parent f9bcce7 commit c9d221b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/contentScripts/views/Crate.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
import '~/styles';
import type { CrateDetailVO } from '../interface';
import CopyInput from '~/components/CopyInput.svelte';
import AttrList from '~/components/AttrList.svelte';
Expand All @@ -9,7 +9,7 @@
import { sizeFormat } from '~/util/size';
export let cargoData: any;
export let repoBlobPath: string | undefined = undefined
export let repoBlobPath: string | undefined = undefined;
let crateInfo: CrateDetailVO | undefined;
let loading = false;
Expand Down Expand Up @@ -56,19 +56,21 @@
</a>
</h2>
<AttrList size={sizeVal} download={crateInfo?.crate?.downloads} />
<div class="my-2">
<div class="mt-2">
<div class="mb-2 color-fg-muted text-xs">
Add the following line to your Cargo.toml file:
</div>
<CopyInput value={copyVal} />
</div>
{/if}
{#if cargoData?.workspace?.members?.length}
<DetailList
title="WorkSpaces"
{repoBlobPath}
workspaces={cargoData?.workspace?.members}
/>
<div class:mt-2={crateInfo?.crate}>
<DetailList
title="WorkSpaces"
{repoBlobPath}
workspaces={cargoData?.workspace?.members}
/>
</div>
{/if}
{/if}
</div>
Expand Down

0 comments on commit c9d221b

Please sign in to comment.