diff options
author | silverwind <me@silverwind.io> | 2022-08-09 23:55:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 23:55:29 +0200 |
commit | 89505ac650c8bce17554bc001a00673741e21528 (patch) | |
tree | 78b190f8b4ca1be67b54cd05dc2f238d98f527d1 /web_src/js/features/repo-commit.js | |
parent | 7009eb9a24a800b7fb884b54f81885815ea4d286 (diff) | |
download | gitea-89505ac650c8bce17554bc001a00673741e21528.tar.gz gitea-89505ac650c8bce17554bc001a00673741e21528.zip |
Change commit status icons to SVG (#20736)
* Fix commit status popover and switch to svg icons
* margin tweak
* fix integration, use warning sign for error to match previous
* remove fix from here, will be a new pr
* use top/bottom positioning
* vertically center
* use no-entry over alert oction
* add exclamation icon
* fix test selector
* more test fixes
Diffstat (limited to 'web_src/js/features/repo-commit.js')
-rw-r--r-- | web_src/js/features/repo-commit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/repo-commit.js b/web_src/js/features/repo-commit.js index aac734de26..308554a305 100644 --- a/web_src/js/features/repo-commit.js +++ b/web_src/js/features/repo-commit.js @@ -58,12 +58,12 @@ export function initRepoCommitLastCommitLoader() { export function initCommitStatuses() { $('.commit-statuses-trigger').each(function () { - const positionRight = $('.repository.file.list').length > 0 || $('.repository.diff').length > 0; + const top = $('.repository.file.list').length > 0 || $('.repository.diff').length > 0; createTippy(this, { trigger: 'click', content: this.nextSibling, - placement: positionRight ? 'right' : 'left', + placement: top ? 'top-start' : 'bottom-start', interactive: true, }); }); |