mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: improve layout of CLI install page (#27998)
This commit is contained in:
@@ -14,4 +14,10 @@ type Story = StoryObj<typeof CliInstallPageView>;
|
||||
|
||||
const Example: Story = {};
|
||||
|
||||
export const LongOrigin: Story = {
|
||||
args: {
|
||||
origin: "https://coder.alb.eks.us-east-1.aws.internal.cdr.dev",
|
||||
},
|
||||
};
|
||||
|
||||
export { Example as CliInstallPage };
|
||||
|
||||
@@ -12,11 +12,11 @@ export const CliInstallPageView: FC<CliInstallPageViewProps> = ({ origin }) => {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"mx-auto h-screen w-[480px]",
|
||||
"mx-auto h-screen w-[600px] max-w-full px-4",
|
||||
"flex flex-1 flex-col items-center justify-center",
|
||||
)}
|
||||
>
|
||||
<Welcome>Install the Coder CLI</Welcome>
|
||||
<Welcome>Install the Coder CLI</Welcome>
|
||||
|
||||
<p className="pb-2 text-center text-base leading-[1.4] text-content-secondary">
|
||||
Copy the command below and{" "}
|
||||
@@ -24,7 +24,7 @@ export const CliInstallPageView: FC<CliInstallPageViewProps> = ({ origin }) => {
|
||||
</p>
|
||||
|
||||
<CodeExample
|
||||
className="max-w-full"
|
||||
className="max-w-full [&>code]:overflow-x-hidden [&>code]:text-ellipsis [&>code]:whitespace-nowrap"
|
||||
code={`curl -fsSL ${origin}/install.sh | sh`}
|
||||
secret={false}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user