Skip to content
Snippets Groups Projects
Commit 67ddb4d6 authored by rhenck's avatar rhenck
Browse files

Improve DropList alignment in cloze

parent b127f601
No related branches found
No related tags found
No related merge requests found
Pipeline #43339 failed
...@@ -158,7 +158,6 @@ import { ClozeElement } from 'common/models/elements/compound-elements/cloze/clo ...@@ -158,7 +158,6 @@ import { ClozeElement } from 'common/models/elements/compound-elements/cloze/clo
<aspect-compound-child-overlay <aspect-compound-child-overlay
*ngIf="['ToggleButton', 'DropList', 'TextField', 'Button'] | arrayIncludes:subPart.type" *ngIf="['ToggleButton', 'DropList', 'TextField', 'Button'] | arrayIncludes:subPart.type"
[style.display]="'inline-block'" [style.display]="'inline-block'"
[class.droplist-child]="subPart.type == 'DropList'"
[parentForm]="parentForm" [parentForm]="parentForm"
[element]="$any(subPart).attrs.model" [element]="$any(subPart).attrs.model"
[editorMode]="editorMode" [editorMode]="editorMode"
...@@ -175,8 +174,7 @@ import { ClozeElement } from 'common/models/elements/compound-elements/cloze/clo ...@@ -175,8 +174,7 @@ import { ClozeElement } from 'common/models/elements/compound-elements/cloze/clo
':host ::ng-deep p strong {letter-spacing: 0.04em; font-weight: 600;}', // bold less bold ':host ::ng-deep p strong {letter-spacing: 0.04em; font-weight: 600;}', // bold less bold
':host ::ng-deep p:empty::after {content: "\\00A0"}', // render empty p ':host ::ng-deep p:empty::after {content: "\\00A0"}', // render empty p
'p span {font-size: inherit}', 'p span {font-size: inherit}',
'sup, sub {line-height: 0;}', 'sup, sub {line-height: 0;}'
'.droplist-child {vertical-align: middle;}'
] ]
}) })
export class ClozeComponent extends CompoundElementComponent { export class ClozeComponent extends CompoundElementComponent {
......
...@@ -85,7 +85,6 @@ import { FormElementComponent } from '../../directives/form-element-component.di ...@@ -85,7 +85,6 @@ import { FormElementComponent } from '../../directives/form-element-component.di
'.list-item {border-radius: 5px;}', '.list-item {border-radius: 5px;}',
':not(.cloze-context) .list-item:not(.image-list-item) {padding: 10px;}', ':not(.cloze-context) .list-item:not(.image-list-item) {padding: 10px;}',
'.cloze-context .list-item {padding: 0 5px;}', '.cloze-context .list-item {padding: 0 5px;}',
'.cloze-context .list-item span {margin-bottom: 3px;}',
'.cloze-context.only-one-item .list-item {height: 100%; display: flex; align-items: center; justify-content: center;}', '.cloze-context.only-one-item .list-item {height: 100%; display: flex; align-items: center; justify-content: center;}',
'img.list-item {align-self: start;}', 'img.list-item {align-self: start;}',
'.errors {border: 2px solid #f44336 !important;}', '.errors {border: 2px solid #f44336 !important;}',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment