fix: 💄 Fix tooltip positioning

This commit is contained in:
ThatOneCalculator 2022-03-22 11:49:43 -07:00
parent 2155c90bc4
commit 7f33ae0327
2 changed files with 5 additions and 1 deletions

View File

@ -38,6 +38,7 @@ githubButton.innerHTML += renderIconDefinitionToSVGElement(GithubOutlined, {
tippy("#save-button", {
content: "Save paste<br><span class='keybind'>Ctrl + S</span>",
placement: "bottom",
animation: "scale",
theme: "rosepine",
allowHTML: true,
@ -45,6 +46,7 @@ tippy("#save-button", {
tippy("#new-button", {
content: "New paste<br><span class='keybind'>Ctrl + N</span>",
placement: "bottom",
animation: "scale",
theme: "rosepine",
allowHTML: true,
@ -52,6 +54,7 @@ tippy("#new-button", {
tippy("#copy-button", {
content: "Duplicate paste<br><span class='keybind'>Ctrl + D</span>",
placement: "bottom",
animation: "scale",
theme: "rosepine",
allowHTML: true,
@ -66,6 +69,7 @@ tippy("#github-button", {
})} ${renderIconDefinitionToSVGElement(HeartOutlined, {
extraSVGAttrs: extraSVGAttrs,
})}</span>`,
placement: "bottom",
animation: "scale",
theme: "rosepine",
allowHTML: true,

View File

@ -8,7 +8,7 @@ $font-mono: "Cartograph CF", ui-monospace, SFMono-Regular, Menlo, Monaco,
color: $text;
background-color: $bg;
opacity: 0.8;
margin-top: 10px;
margin-top: 0.3rem;
padding: 10px;
font-family: $font-mono;
> .tippy-backdrop {