diff options
Diffstat (limited to 'web_src/js/components')
-rw-r--r-- | web_src/js/components/RepoActionView.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue index deb071da5a..e0ec488933 100644 --- a/web_src/js/components/RepoActionView.vue +++ b/web_src/js/components/RepoActionView.vue @@ -268,6 +268,11 @@ export function initRepositoryActionView() { const el = document.getElementById('repo-action-view'); if (!el) return; + // TODO: the parent element's full height doesn't work well now, + // but we can not pollute the global style at the moment, only fix the height problem for pages with this component + const parentFullHeight = document.querySelector('body > div.full.height'); + if (parentFullHeight) parentFullHeight.style.paddingBottom = '0'; + const view = createApp(sfc, { runIndex: el.getAttribute('data-run-index'), jobIndex: el.getAttribute('data-job-index'), @@ -412,11 +417,6 @@ export function initRepositoryActionView() { <style lang="less"> // some elements are not managed by vue, so we need to use global style -// TODO: the parent element's full height doesn't work well now -body > div.full.height { - padding-bottom: 0; -} - .job-status-rotate { animation: job-status-rotate-keyframes 1s linear infinite; } |