diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-07-08 00:25:58 +0000 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-07-08 00:25:58 +0000 |
commit | ea5dc98b974671c4155e280a4ab7cca0d4b634c9 (patch) | |
tree | b434ed15d5c1c43f5e06b81e8a51e4ee5fe81f63 /web | |
parent | Rework the design of the maintainer pages (diff) | |
download | soko-ea5dc98b974671c4155e280a4ab7cca0d4b634c9.tar.gz soko-ea5dc98b974671c4155e280a4ab7cca0d4b634c9.tar.bz2 soko-ea5dc98b974671c4155e280a4ab7cca0d4b634c9.zip |
Adjust the base layout slightly
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/packs/src/javascript/useflags/render-bubbles.js | 19 | ||||
-rw-r--r-- | web/packs/src/stylesheets/misc.scss | 2 | ||||
-rw-r--r-- | web/templates/layout/tyriannav.tmpl | 4 |
3 files changed, 21 insertions, 4 deletions
diff --git a/web/packs/src/javascript/useflags/render-bubbles.js b/web/packs/src/javascript/useflags/render-bubbles.js index e8d7581..6e71975 100644 --- a/web/packs/src/javascript/useflags/render-bubbles.js +++ b/web/packs/src/javascript/useflags/render-bubbles.js @@ -13,8 +13,25 @@ var checkD3 = setInterval(function() { } }, 100); +// TODO this is a workaround for now +// as we do get duplicate charts from +// time to time. This is probably related +// to turbolinks. +function deleteDuplicate() { + var bubbles = document.querySelectorAll(".bubble"); + while(bubbles.length > 1){ + bubbles[1].remove(); + bubbles = document.querySelectorAll(".bubble"); + } +} + +setTimeout(deleteDuplicate, 100); +setTimeout(deleteDuplicate, 200); +setTimeout(deleteDuplicate, 500); +setTimeout(deleteDuplicate, 1000); + function createUseflagChart() { - + if(!useflagChartCreated) { $('#bubble-placeholder').show(); diff --git a/web/packs/src/stylesheets/misc.scss b/web/packs/src/stylesheets/misc.scss index f9de560..e7b06e9 100644 --- a/web/packs/src/stylesheets/misc.scss +++ b/web/packs/src/stylesheets/misc.scss @@ -110,7 +110,7 @@ td .alert { .kk-group-header { display: block; - border-bottom: 1px solid #eee; + border-bottom: 1px solid #ddd; } } diff --git a/web/templates/layout/tyriannav.tmpl b/web/templates/layout/tyriannav.tmpl index 1864d95..24ce70d 100644 --- a/web/templates/layout/tyriannav.tmpl +++ b/web/templates/layout/tyriannav.tmpl @@ -11,9 +11,9 @@ <li class="nav-item {{ if (eq .Tab "home")}}active{{end}}"><a class="nav-link" href="/">Home</a></li> <li class="nav-item {{ if (eq .Tab "packages")}}active{{end}}"><a class="nav-link" href="/categories">Packages</a></li> - <li class="nav-item {{ if (eq .Tab "useflags")}}active{{end}}"><a class="nav-link" href="/useflags">USE flags</a></li> - <li class="nav-item {{ if (eq .Tab "arches")}}active{{end}}"><a class="nav-link" href="/arches">Architectures</a></li> <li class="nav-item {{ if (eq .Tab "maintainers")}}active{{end}}"><a class="nav-link" href="/maintainers">Maintainers</a></li> + <li class="nav-item {{ if (eq .Tab "useflags")}}active{{end}}"><a class="nav-link" href="/useflags">USE flags</a></li> + <li class="nav-item {{ if (eq .Tab "arches")}}active{{end}}"><a class="nav-link" href="/arches/amd64/keyworded">Architectures</a></li> <li class="nav-item {{ if (eq .Tab "about")}}active{{end}}"><a class="nav-link" href="/about">About</a></li> </ul> |