mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site): fix logo width on sign in (#10091)
This commit is contained in:
@@ -32,16 +32,17 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
|
||||
const applicationName = getApplicationName();
|
||||
const logoURL = getLogoURL();
|
||||
const applicationLogo = logoURL ? (
|
||||
<div>
|
||||
<img
|
||||
alt={applicationName}
|
||||
src={logoURL}
|
||||
// This prevent browser to display the ugly error icon if the
|
||||
// image path is wrong or user didn't finish typing the url
|
||||
onError={(e) => (e.currentTarget.style.display = "none")}
|
||||
onLoad={(e) => (e.currentTarget.style.display = "inline")}
|
||||
/>
|
||||
</div>
|
||||
<img
|
||||
alt={applicationName}
|
||||
src={logoURL}
|
||||
// This prevent browser to display the ugly error icon if the
|
||||
// image path is wrong or user didn't finish typing the url
|
||||
onError={(e) => (e.currentTarget.style.display = "none")}
|
||||
onLoad={(e) => (e.currentTarget.style.display = "inline")}
|
||||
css={{
|
||||
maxWidth: "200px",
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<CoderIcon fill="white" opacity={1} className={styles.icon} />
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user