File tree Expand file tree Collapse file tree 1 file changed +39
-39
lines changed Expand file tree Collapse file tree 1 file changed +39
-39
lines changed Original file line number Diff line number Diff line change 202
202
<Layout .Stack
203
203
direction =" row"
204
204
alignItems =" center"
205
- gap =" s" >
205
+ gap =" s"
206
+ style =" flex: 1;" >
206
207
{#if action === ' select' }
207
208
<input
208
209
class =" is-small u-margin-inline-end-8"
235
236
size =" xs"
236
237
alt ={repo .name }
237
238
empty ={! iconName }>
238
- <SvgIcon
239
- name ={iconName }
240
- iconSize =" small" />
239
+ {#if iconName }
240
+ <SvgIcon
241
+ name ={iconName }
242
+ iconSize =" small" />
243
+ {/if }
241
244
</Avatar >
242
245
{/if }
243
246
<Layout .Stack
244
- gap =" s"
245
247
direction =" row"
246
248
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 >
281
272
{/if }
282
273
</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 }
283
283
</Layout .Stack >
284
284
</Table .Cell >
285
285
</Table .Row .Base >
You can’t perform that action at this time.
0 commit comments