mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-13 21:59:30 +00:00
Replacing button svg with raised hand emoji
Signed-off-by: Milton Moura <miltonmoura@gmail.com>
This commit is contained in:
+15
-4
@@ -18,7 +18,6 @@ import {
|
|||||||
SettingsSolidIcon,
|
SettingsSolidIcon,
|
||||||
} from "@vector-im/compound-design-tokens/assets/web/icons";
|
} from "@vector-im/compound-design-tokens/assets/web/icons";
|
||||||
|
|
||||||
import RaiseHandIcon from "../icons/RaiseHand.svg?react";
|
|
||||||
import styles from "./Button.module.css";
|
import styles from "./Button.module.css";
|
||||||
|
|
||||||
interface MicButtonProps extends ComponentPropsWithoutRef<"button"> {
|
interface MicButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||||
@@ -104,11 +103,23 @@ export const RaiseHandButton: FC<RaiseHandButtonProps> = ({
|
|||||||
return (
|
return (
|
||||||
<Tooltip label={t("common.raise_hand")}>
|
<Tooltip label={t("common.raise_hand")}>
|
||||||
<CpdButton
|
<CpdButton
|
||||||
iconOnly
|
|
||||||
Icon={RaiseHandIcon}
|
|
||||||
kind={raised ? "primary" : "secondary"}
|
kind={raised ? "primary" : "secondary"}
|
||||||
{...props}
|
{...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>
|
</Tooltip>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
+12
-2
@@ -16,7 +16,6 @@ import { Text, Tooltip } from "@vector-im/compound-web";
|
|||||||
import { ErrorIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
|
import { ErrorIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
|
||||||
|
|
||||||
import styles from "./MediaView.module.css";
|
import styles from "./MediaView.module.css";
|
||||||
import RaiseHandIcon from "../icons/RaiseHand.svg?react";
|
|
||||||
import { Avatar } from "../Avatar";
|
import { Avatar } from "../Avatar";
|
||||||
|
|
||||||
interface Props extends ComponentProps<typeof animated.div> {
|
interface Props extends ComponentProps<typeof animated.div> {
|
||||||
@@ -91,7 +90,18 @@ export const MediaView = forwardRef<HTMLDivElement, Props>(
|
|||||||
<div className={styles.fg}>
|
<div className={styles.fg}>
|
||||||
{raisedHand && (
|
{raisedHand && (
|
||||||
<div className={styles.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>
|
||||||
)}
|
)}
|
||||||
<div className={styles.nameTag}>
|
<div className={styles.nameTag}>
|
||||||
|
|||||||
Reference in New Issue
Block a user