Skip to content

Commit e63652e

Browse files
Fix sidebar width on very wide displays (#20260)
1 parent d782aad commit e63652e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

components/dashboard/src/Login.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ const LeftPanel = () => {
295295
const { isDark } = useTheme();
296296

297297
return (
298-
<div className="w-full lg:w-1/3 flex flex-col justify-between p-4 lg:p-10 lg:pb-2 min-h-screen">
298+
<div className="w-full lg:w-1/3 lg:max-w-lg flex flex-col justify-between p-4 lg:p-10 lg:pb-2 min-h-screen">
299299
<div>
300300
<div className="p-[1px] bg-gradient-to-b from-white to-[#ECE7E5] dark:from-gray-700 dark:to-gray-600 rounded-2xl justify-center items-center mb-8">
301301
<div className="bg-[#F9F9F9B2] dark:bg-gray-800 w-full p-4 rounded-2xl border border-gray-100 dark:border-gray-700">
@@ -352,14 +352,16 @@ const LeftPanel = () => {
352352
</li>
353353
))}
354354
</ul>
355-
<LinkButton
356-
variant="secondary"
357-
className="mt-8 mb-2 text-pk-content-primary bg-pk-surface-primary dark:bg-gray-700 dark:text-white w-full shadow font-medium"
358-
href="https://app.gitpod.io/login"
359-
isExternalUrl={true}
360-
>
361-
Explore
362-
</LinkButton>
355+
<div className="flex w-full justify-center items-center mt-8 mb-2">
356+
<LinkButton
357+
variant="secondary"
358+
className="text-pk-content-primary bg-pk-surface-primary dark:bg-gray-700 dark:text-white w-full shadow font-medium"
359+
href="https://app.gitpod.io/login"
360+
isExternalUrl={true}
361+
>
362+
Explore
363+
</LinkButton>
364+
</div>
363365
</div>
364366
<div className="justify-center items-center max-w-fit mx-auto flex flex-col pt-4">
365367
<IconGitpodEngraved variant={isDark ? "dark" : "light"} className="shadow-engraving block h-6 w-6" />

0 commit comments

Comments
 (0)