Skip to content

Commit

Permalink
add shadow to annotation tag
Browse files Browse the repository at this point in the history
>
>
Co-authored-by: dav1312
  • Loading branch information
franciscoBSalgueiro committed Nov 15, 2023
1 parent 0df6be2 commit bd9bb22
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/boards/BoardPlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -526,13 +526,20 @@ function AnnotationHint({
<Avatar
sx={{
transform: "translateY(-40%) translateX(-50%)",
zIndex: 100
zIndex: 100,
filter: "url(#shadow)",
overflow: "initial"
}}
radius="xl"
color={color}
variant="filled"
>
<svg viewBox="0 0 100 100" width="100%" height="100%">
<defs>
<filter id="shadow">
<feDropShadow dx="0" dy="1" floodOpacity="0.3" stdDeviation="0"></feDropShadow>
</filter>
</defs>
<g>{glyphToSvg[annotation]}</g>
</svg>
</Avatar>
Expand Down

0 comments on commit bd9bb22

Please sign in to comment.