More layout changes.

This commit is contained in:
Michael W Spalti
2022-01-22 15:44:50 -08:00
parent 32b2e181bd
commit 9649b5fb68
4 changed files with 15 additions and 10 deletions

View File

@@ -6,3 +6,7 @@
} }
} }
} }
:host ::ng-deep ds-dynamic-form-control-container > div {
margin-bottom: 1rem;
}

View File

@@ -267,6 +267,11 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy {
*/ */
newFormatBaseLayout = 'col col-sm-6 d-inline-block'; newFormatBaseLayout = 'col col-sm-6 d-inline-block';
/**
* Base layout for iiif options
*/
iiifOptionsBaseLayout = 'col col-sm-6';
/** /**
* Layout used for structuring the form inputs * Layout used for structuring the form inputs
*/ */
@@ -687,10 +692,10 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy {
const iiifSub = iiifCheck$.subscribe((iiif: boolean) => { const iiifSub = iiifCheck$.subscribe((iiif: boolean) => {
if (iiif) { if (iiif) {
this.isIIIF = true; this.isIIIF = true;
this.formLayout.iiifLabel.grid.host = this.newFormatBaseLayout; this.formLayout.iiifLabel.grid.host = this.iiifOptionsBaseLayout;
this.formLayout.iiifToc.grid.host = this.newFormatBaseLayout; this.formLayout.iiifToc.grid.host = this.iiifOptionsBaseLayout;
this.formLayout.iiifWidth.grid.host = this.newFormatBaseLayout; this.formLayout.iiifWidth.grid.host = this.iiifOptionsBaseLayout;
this.formLayout.iiifHeight.grid.host = this.newFormatBaseLayout; this.formLayout.iiifHeight.grid.host = this.iiifOptionsBaseLayout;
this.formGroup.patchValue({ this.formGroup.patchValue({
iiifLabelContainer: { iiifLabelContainer: {
iiifLabel: bitstream.firstMetadataValue(this.IIIF_LABEL_METADATA) iiifLabel: bitstream.firstMetadataValue(this.IIIF_LABEL_METADATA)

View File

@@ -14,7 +14,3 @@
-moz-appearance: none; -moz-appearance: none;
appearance: none; appearance: none;
} }
label {
margin-top: calc(0.7 * var(--ds-content-spacing));
}

View File

@@ -584,11 +584,11 @@
"bitstream.edit.form.iiifLabel.label": "IIIF Label", "bitstream.edit.form.iiifLabel.label": "IIIF Label",
"bitstream.edit.form.iiifLabel.hint": "Canvas label for this image", "bitstream.edit.form.iiifLabel.hint": "Canvas label for this image. If not provided default label will be used.",
"bitstream.edit.form.iiifToc.label": "IIIF Table of Contents", "bitstream.edit.form.iiifToc.label": "IIIF Table of Contents",
"bitstream.edit.form.iiifToc.hint": "Adding label makes this image the start of a new table of contents range.", "bitstream.edit.form.iiifToc.hint": "Adding text here makes this the start of a new table of contents range.",
"bitstream.edit.form.iiifWidth.label": "IIIF canvas width", "bitstream.edit.form.iiifWidth.label": "IIIF canvas width",