Replacing button svg with raised hand emoji

Signed-off-by: Milton Moura <miltonmoura@gmail.com>
This commit is contained in:
Milton Moura
2024-09-08 01:38:44 +00:00
parent 2d1917c22a
commit f6ae6a0765
2 changed files with 27 additions and 6 deletions

View File

@@ -18,7 +18,6 @@ import {
SettingsSolidIcon,
} from "@vector-im/compound-design-tokens/assets/web/icons";
import RaiseHandIcon from "../icons/RaiseHand.svg?react";
import styles from "./Button.module.css";
interface MicButtonProps extends ComponentPropsWithoutRef<"button"> {
@@ -104,11 +103,23 @@ export const RaiseHandButton: FC<RaiseHandButtonProps> = ({
return (
<Tooltip label={t("common.raise_hand")}>
<CpdButton
iconOnly
Icon={RaiseHandIcon}
kind={raised ? "primary" : "secondary"}
{...props}
/>
style={{ paddingLeft: 8, paddingRight: 8 }}
>
<p
role="img"
aria-label="raised hand"
style={{
width: "30px",
height: "0px",
display: "inline-block",
fontSize: "22px",
}}
>
</p>
</CpdButton>
</Tooltip>
);
};

View File

@@ -16,7 +16,6 @@ import { Text, Tooltip } from "@vector-im/compound-web";
import { ErrorIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
import styles from "./MediaView.module.css";
import RaiseHandIcon from "../icons/RaiseHand.svg?react";
import { Avatar } from "../Avatar";
interface Props extends ComponentProps<typeof animated.div> {
@@ -91,7 +90,18 @@ export const MediaView = forwardRef<HTMLDivElement, Props>(
<div className={styles.fg}>
{raisedHand && (
<div className={styles.raisedHand}>
<RaiseHandIcon width={22} height={22} />
<p
role="img"
aria-label="raised hand"
style={{
width: "22px",
height: "0px",
display: "inline-block",
fontSize: "22px",
}}
>
</p>
</div>
)}
<div className={styles.nameTag}>