Skip to content

Commit 1aa098a

Browse files
committed
fix: resolve alignemnet issue
1 parent 536c9f8 commit 1aa098a

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

src/lib/components/git/repositories.svelte

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@
202202
<Layout.Stack
203203
direction="row"
204204
alignItems="center"
205-
gap="s">
205+
gap="s"
206+
style="flex: 1;">
206207
{#if action === 'select'}
207208
<input
208209
class="is-small u-margin-inline-end-8"
@@ -235,51 +236,50 @@
235236
size="xs"
236237
alt={repo.name}
237238
empty={!iconName}>
238-
<SvgIcon
239-
name={iconName}
240-
iconSize="small" />
239+
{#if iconName}
240+
<SvgIcon
241+
name={iconName}
242+
iconSize="small" />
243+
{/if}
241244
</Avatar>
242245
{/if}
243246
<Layout.Stack
244-
gap="s"
245247
direction="row"
246248
alignItems="center"
247-
justifyContent="space-between">
248-
<Layout.Stack
249-
direction="row"
250-
gap="s"
251-
alignItems="center">
252-
<Typography.Text
253-
truncate
254-
color="--fgcolor-neutral-secondary">
255-
{repo.name}
256-
</Typography.Text>
257-
{#if repo.private}
258-
<Icon
259-
size="s"
260-
icon={IconLockClosed}
261-
color="--fgcolor-neutral-tertiary" />
262-
{/if}
263-
{#if !$isSmallViewport}
264-
<time datetime={repo.pushedAt}>
265-
<Typography.Caption
266-
variant="400"
267-
truncate
268-
color="--fgcolor-neutral-tertiary">
269-
{timeFromNow(repo.pushedAt)}
270-
</Typography.Caption>
271-
</time>
272-
{/if}
273-
</Layout.Stack>
274-
{#if action === 'button'}
275-
<PinkButton.Button
276-
size="xs"
277-
variant="secondary"
278-
on:click={() => connect(repo)}>
279-
Connect
280-
</PinkButton.Button>
249+
gap="s"
250+
style="flex: 1; min-width: 0;">
251+
<Typography.Text
252+
truncate
253+
color="--fgcolor-neutral-secondary"
254+
style="flex: 1; min-width: 0;">
255+
{repo.name}
256+
</Typography.Text>
257+
{#if repo.private}
258+
<Icon
259+
size="s"
260+
icon={IconLockClosed}
261+
color="--fgcolor-neutral-tertiary" />
262+
{/if}
263+
{#if !$isSmallViewport}
264+
<time datetime={repo.pushedAt}>
265+
<Typography.Caption
266+
variant="400"
267+
truncate
268+
color="--fgcolor-neutral-tertiary">
269+
{timeFromNow(repo.pushedAt)}
270+
</Typography.Caption>
271+
</time>
281272
{/if}
282273
</Layout.Stack>
274+
{#if action === 'button'}
275+
<PinkButton.Button
276+
size="xs"
277+
variant="secondary"
278+
style="flex-shrink: 0;"
279+
on:click={() => connect(repo)}>
280+
Connect
281+
</PinkButton.Button>
282+
{/if}
283283
</Layout.Stack>
284284
</Table.Cell>
285285
</Table.Row.Base>

0 commit comments

Comments
 (0)