From fee9bd3ce75b1cced4c7df17144eb0f64c816698 Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Mon, 28 Feb 2022 10:36:47 +0100 Subject: [PATCH] [player] Correct the dimensions of elements This was necessary after the surrounding element container with its styles and classes was deleted --- .../element-splitter/element-splitter.component.html | 4 ++-- .../element-text-group/element-text-group.component.html | 2 +- .../element-text-input-group.component.html | 2 +- projects/player/src/styles.css | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/projects/player/src/app/components/element-splitter/element-splitter.component.html b/projects/player/src/app/components/element-splitter/element-splitter.component.html index 7361a50a5..67fd2cd12 100644 --- a/projects/player/src/app/components/element-splitter/element-splitter.component.html +++ b/projects/player/src/app/components/element-splitter/element-splitter.component.html @@ -1,7 +1,7 @@ <div [class]="elementModel.positionProps?.dynamicPositioning && elementModel.positionProps?.fixedSize ? - 'fixed-size-content-wrapper' : 'element-container'"> + 'fixed-size-content-wrapper' : 'inline-container'"> <div [class]="elementModel.positionProps?.dynamicPositioning && elementModel.positionProps?.fixedSize ? - 'fixed-size-content' : 'element-container'" + 'fixed-size-content' : 'inline-container'" [style.width]="elementModel.positionProps?.dynamicPositioning && elementModel.positionProps?.fixedSize ? elementModel.width + 'px' : '100%'" [style.height]="elementModel.positionProps?.dynamicPositioning && elementModel.positionProps?.fixedSize ? diff --git a/projects/player/src/app/components/element-text-group/element-text-group.component.html b/projects/player/src/app/components/element-text-group/element-text-group.component.html index 8408cb9ae..eea635cb1 100644 --- a/projects/player/src/app/components/element-text-group/element-text-group.component.html +++ b/projects/player/src/app/components/element-text-group/element-text-group.component.html @@ -1,4 +1,4 @@ -<div class="element-container" cdkOverlayOrigin #overlayOrigin="cdkOverlayOrigin"> +<div class="inline-container" cdkOverlayOrigin #overlayOrigin="cdkOverlayOrigin"> <aspect-text #elementComponent [elementModel]="elementModel | cast: TextElement" diff --git a/projects/player/src/app/components/element-text-input-group/element-text-input-group.component.html b/projects/player/src/app/components/element-text-input-group/element-text-input-group.component.html index 48b0934ef..8e451a2b5 100644 --- a/projects/player/src/app/components/element-text-input-group/element-text-input-group.component.html +++ b/projects/player/src/app/components/element-text-input-group/element-text-input-group.component.html @@ -1,4 +1,4 @@ -<div class="element-container" cdkOverlayOrigin #overlayOrigin="cdkOverlayOrigin"> +<div class="inline-container" cdkOverlayOrigin #overlayOrigin="cdkOverlayOrigin"> <form [formGroup]="form"> <aspect-text-area *ngIf="elementModel.type === 'text-area'" diff --git a/projects/player/src/styles.css b/projects/player/src/styles.css index ab106bb6b..494ff91bb 100644 --- a/projects/player/src/styles.css +++ b/projects/player/src/styles.css @@ -2,3 +2,7 @@ body { overflow: hidden; margin: 0 !important; } + +.inline-container{ + display: inline; +} -- GitLab