Skip to content
Snippets Groups Projects
Unverified Commit b261643a authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

Make metabot centered again (#48912)

parent ac2552fb
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,10 @@ import { useEffect, useMemo, useState } from "react";
import { t } from "ttag";
import _ from "underscore";
import Tooltip from "metabase/core/components/Tooltip";
import styles from "metabase/css/core/animation.module.css";
import { useSelector } from "metabase/lib/redux";
import { getUser } from "metabase/selectors/user";
import { Box } from "metabase/ui";
import { Box, Tooltip } from "metabase/ui";
import { getHasMetabotLogo } from "../../selectors";
......@@ -24,14 +23,7 @@ export const HomeGreeting = (): JSX.Element => {
return (
<GreetingRoot>
{showLogo && (
<Tooltip
tooltip={t`Don't tell anyone, but you're my favorite.`}
placement="bottom"
>
<MetabotGreeting />
</Tooltip>
)}
{showLogo && <MetabotGreeting />}
<GreetingMessage data-testid="greeting-message" showLogo={showLogo}>
{message}
</GreetingMessage>
......@@ -87,25 +79,30 @@ const MetabotGreeting = () => {
}, [buffer]);
return (
<Box
style={{
position: "relative",
width: "62px",
height: "40px",
marginInlineEnd: "0.5rem",
}}
<Tooltip
label={t`Don't tell anyone, but you're my favorite.`}
position="bottom"
>
<GreetingLogo
isCool={isCool}
className={`${styles.SpinOut} ${isCooling ? styles.SpinOutActive : ""}`}
variant="cool"
/>
<GreetingLogo
isCool={!isCool}
className={`${styles.SpinOut} ${isCooling ? styles.SpinOutActive : ""}`}
variant="happy"
/>
</Box>
<Box
style={{
position: "relative",
width: "54px",
height: "40px",
marginInlineEnd: "0.5rem",
}}
>
<GreetingLogo
isCool={isCool}
className={`${styles.SpinOut} ${isCooling ? styles.SpinOutActive : ""}`}
variant="cool"
/>
<GreetingLogo
isCool={!isCool}
className={`${styles.SpinOut} ${isCooling ? styles.SpinOutActive : ""}`}
variant="happy"
/>
</Box>
</Tooltip>
);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment