diff --git a/css/icon.css b/css/tab.css similarity index 66% rename from css/icon.css rename to css/tab.css index b4a81d74d..a04a0f9ea 100644 --- a/css/icon.css +++ b/css/tab.css @@ -8,3 +8,13 @@ span.icon-open-project { body.theme--dark span.icon-open-project { background: url('../img/tab-logo-white.svg') no-repeat center; } + +#tab-open-project, .fill-height { + height: 100%; +} + +.center-content { + display: flex; + align-content: center; + justify-content: center; +} diff --git a/lib/Listener/LoadSidebarScript.php b/lib/Listener/LoadSidebarScript.php index dc6479dbb..a3c032961 100644 --- a/lib/Listener/LoadSidebarScript.php +++ b/lib/Listener/LoadSidebarScript.php @@ -38,6 +38,6 @@ public function handle(Event $event): void { return; } Util::addScript(Application::APP_ID, 'integration_openproject-projectTab', 'files'); - Util::addStyle(Application::APP_ID, 'icon'); + Util::addStyle(Application::APP_ID, 'tab'); } } diff --git a/src/components/tab/EmptyContent.vue b/src/components/tab/EmptyContent.vue index 339457a8e..86dfc0e6d 100644 --- a/src/components/tab/EmptyContent.vue +++ b/src/components/tab/EmptyContent.vue @@ -1,16 +1,18 @@ @@ -60,11 +62,7 @@ export default { text-align: center; } .empty-icon { - padding-top: 10vh; - padding-bottom: 1vh; - display: flex; - align-content: center; - justify-content: center; + padding: 1vh 0; .icon img { height: 50px; width: 50px; diff --git a/src/views/ProjectsTab.vue b/src/views/ProjectsTab.vue index e472d79c9..76239e9c1 100644 --- a/src/views/ProjectsTab.vue +++ b/src/views/ProjectsTab.vue @@ -22,9 +22,8 @@ @@ -43,8 +42,13 @@ export default { fileInfo: null, state: 'loading', }), - computed: {}, - created() {}, + computed: { + isLoading() { + return this.state === 'loading' + }, + }, + created() { + }, methods: { /** * updates current resource @@ -89,11 +93,19 @@ export default { .projects { height: 100% !important; text-align: center; + + .center-content { + display: flex; + align-items: center; + justify-content: center; + } + .title { - font-size: 2rem; + font-size: 2rem; font-weight: 600; padding-bottom: 0; } + .subtitle { padding-top: 0; font-size: 1.2rem;