Skip to content

Commit dad6503

Browse files
authored
fix(code-server): make launcher scrollable (#343)
1 parent f38e886 commit dad6503

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

plugins/code-server/app/components/LauncherView.stories.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ export const NotInstalled: Story = {
4646
},
4747
}
4848

49+
/** Short dock panel with install instructions available through scrolling. */
50+
export const NotInstalledShortPanel: Story = {
51+
args: NotInstalled.args,
52+
render: args => ({
53+
components: { LauncherView },
54+
setup: () => ({ args }),
55+
template: '<div class="relative h-64 overflow-hidden"><LauncherView v-bind="args" /></div>',
56+
}),
57+
}
58+
4959
/** Installed and idle, showing the launch screen (code-server backend). */
5060
export const Launch: Story = {
5161
args: {

plugins/code-server/app/components/LauncherView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const errorText = computed(() => (props.server.status === 'error' ? props.server
4646
</script>
4747

4848
<template>
49-
<div class="absolute inset-0 flex items-center justify-center p-6 bg-base color-base font-sans">
50-
<div class="w-full max-w-[560px]">
49+
<div class="absolute inset-0 flex of-y-auto p-6 box-border bg-base color-base font-sans">
50+
<div class="m-auto w-full max-w-[560px]">
5151
<!-- Brand eyebrow -->
5252
<p class="flex items-center gap-1.5 mb-2.5 text-xs tracking-wider uppercase color-muted">
5353
<span class="i-ph-code-duotone text-sm" />

0 commit comments

Comments
 (0)