Skip to content

Commit 127f65c

Browse files
fix(site): fix logo width on sign in (#10091)
1 parent 4ad080c commit 127f65c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

site/src/pages/LoginPage/LoginPageView.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,17 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
3232
const applicationName = getApplicationName();
3333
const logoURL = getLogoURL();
3434
const applicationLogo = logoURL ? (
35-
<div>
36-
<img
37-
alt={applicationName}
38-
src={logoURL}
39-
// This prevent browser to display the ugly error icon if the
40-
// image path is wrong or user didn't finish typing the url
41-
onError={(e) => (e.currentTarget.style.display = "none")}
42-
onLoad={(e) => (e.currentTarget.style.display = "inline")}
43-
/>
44-
</div>
35+
<img
36+
alt={applicationName}
37+
src={logoURL}
38+
// This prevent browser to display the ugly error icon if the
39+
// image path is wrong or user didn't finish typing the url
40+
onError={(e) => (e.currentTarget.style.display = "none")}
41+
onLoad={(e) => (e.currentTarget.style.display = "inline")}
42+
css={{
43+
maxWidth: "200px",
44+
}}
45+
/>
4546
) : (
4647
<CoderIcon fill="white" opacity={1} className={styles.icon} />
4748
);

0 commit comments

Comments
 (0)