diff options
author | JakobDev <jakobdev@gmx.de> | 2022-09-03 00:06:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 23:06:54 +0100 |
commit | 96a9e15dffdd612fa78801bd2a1e3d27fdd17bb1 (patch) | |
tree | 4fd63c96acd7b6408f15a8931826518c99b7084f /web_src/js/modules | |
parent | b8818a1c685870d774e956f0d6980784225225c3 (diff) | |
download | gitea-96a9e15dffdd612fa78801bd2a1e3d27fdd17bb1.tar.gz gitea-96a9e15dffdd612fa78801bd2a1e3d27fdd17bb1.zip |
Show language name on hover (#20923)
Each repo has a bar which shows the used programming languages. If you want to know, what language is behind a color, you need to click the bar. With this PR, you just need to hover over the color the view the name.
Diffstat (limited to 'web_src/js/modules')
-rw-r--r-- | web_src/js/modules/tippy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/modules/tippy.js b/web_src/js/modules/tippy.js index 44e97e2a0f..7fc273d1cc 100644 --- a/web_src/js/modules/tippy.js +++ b/web_src/js/modules/tippy.js @@ -3,7 +3,7 @@ import tippy from 'tippy.js'; export function createTippy(target, opts = {}) { const instance = tippy(target, { appendTo: document.body, - placement: 'top-start', + placement: target.getAttribute('data-placement') || 'top-start', animation: false, allowHTML: false, maxWidth: 500, // increase over default 350px |