Skip to content

Commit

Permalink
fix safari focus bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehobbs committed Jan 21, 2024
1 parent 6a4ad01 commit bce0425
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/svg/play-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const PlayIcon = ({ className }: { className?: string }) => (
<svg
className={className}
height="32px"
// height="32px"
version="1.1"
viewBox="0 0 32 32"
xmlSpace="preserve"
Expand Down
4 changes: 2 additions & 2 deletions src/routes/index.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const Video1Section = () => {
<Dialog>
<DialogTrigger asChild>
<button className="md:order-first max-w-[325px] relative">
<PlayIcon className="inset-0 absolute w-full h-full scale-[33%]" />
<PlayIcon className="absolute h-24 w-24 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" />
<img
src={video1Thumb}
className="aspect-square rounded-md"
Expand Down Expand Up @@ -192,7 +192,7 @@ const Video2Section = () => {
<Dialog>
<DialogTrigger asChild>
<button className="md:order-first max-w-[325px] relative">
<PlayIcon className="inset-0 absolute w-full h-full scale-[33%]" />
<PlayIcon className="absolute h-24 w-24 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" />
<img
src={video2Thumb}
className="aspect-square rounded-md"
Expand Down

0 comments on commit bce0425

Please sign in to comment.