Skip to content

Commit

Permalink
fix: the email icon wasn't responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Nov 2, 2023
1 parent 8ecb2a8 commit acd2f8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/email_button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub fn EmailButton(props: &EmailButtonProps) -> Html {
let tooltip_css = css! {
& {
position: relative;
font-size: 24px;
}

& > #wrapper {
Expand All @@ -76,8 +77,8 @@ pub fn EmailButton(props: &EmailButtonProps) -> Html {
padding: 10px;
border-radius: 5px;
left: 120px;
top: -30px;
transform: translateX(-50%);
top: -0px;
transform: translateX(-50%) translateY(-100%);
}

&:hover::before {
Expand Down Expand Up @@ -129,7 +130,7 @@ pub fn EmailButton(props: &EmailButtonProps) -> Html {
if !is_mobile {
<span
class={tooltip_css}
data-tooltip="an anti-spam measure">
data-tooltip="my email is shy">
<span id="wrapper">
<Icon
mask={IconMask::Question}
Expand Down

0 comments on commit acd2f8d

Please sign in to comment.