mirror of https://github.com/zer0bin-dev/zer0bin
fix: 💄 Fix tooltip positioning
This commit is contained in:
parent
2155c90bc4
commit
7f33ae0327
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue