From c17801e6f25f70b81700cd2b083dda9d0145a665 Mon Sep 17 00:00:00 2001
From: jojohoch <joachim.hoch@iqb.hu-berlin.de>
Date: Wed, 15 Dec 2021 14:25:25 +0100
Subject: [PATCH] Change center-content class for button component

---
 projects/common/ui-elements/button/button.component.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/projects/common/ui-elements/button/button.component.ts b/projects/common/ui-elements/button/button.component.ts
index 55816ce69..b49022a63 100644
--- a/projects/common/ui-elements/button/button.component.ts
+++ b/projects/common/ui-elements/button/button.component.ts
@@ -31,9 +31,9 @@ import { ButtonElement } from './button-element';
            (click)="elementModel.action ? navigationRequested.emit(elementModel.action) : false">
   `,
   styles: [
-    '.dynamic-image {width: 100%; height: fit-content}',
-    '.static-image {width: 100%; height: 100%; object-fit: contain}',
-    '.center-content {position: relative; top: 0; bottom: 0; left: 0;right: 0; margin: auto;}'
+    '.dynamic-image {width: 100%; height: fit-content;}',
+    '.static-image {width: 100%; height: 100%; object-fit: contain;}',
+    '.center-content {display: block; margin: auto; top: 50%; transform: translateY(-50%);}'
   ]
 })
 export class ButtonComponent extends ElementComponent {
-- 
GitLab