Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default class DetailCohortsComponent extends Component {
}
<template>
<section
class="detail-learningmaterials {{if this.displaySearchBox 'display-search-box'}}"
class="detail-learningmaterials{{if this.displaySearchBox ' display-search-box'}}"
data-test-detail-learning-materials
>
<div class="detail-learningmaterials-header">
Expand Down
12 changes: 7 additions & 5 deletions packages/ilios-common/addon/components/detail-mesh.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,17 @@ export default class DetailMeshComponent extends Component {
{{/if}}
</div>
</div>
<div class="content">
{{#if this.isManaging}}
{{#if this.isManaging}}
<div class="content">
<MeshManager
@editable={{@editable}}
@terms={{this.bufferedDescriptors}}
@add={{this.addDescriptorToBuffer}}
@remove={{this.removeDescriptorFromBuffer}}
/>
{{else}}
</div>
{{else}}
<div class="content{{unless this.meshDescriptors.length ' empty'}}">
{{#if this.meshDescriptors.length}}
<ul class="selected-mesh-terms">

Expand All @@ -125,8 +127,8 @@ export default class DetailMeshComponent extends Component {
{{/each}}
</ul>
{{/if}}
{{/if}}
</div>
</div>
{{/if}}
{{/if}}
</section>
</template>
Expand Down
12 changes: 7 additions & 5 deletions packages/ilios-common/addon/components/detail-taxonomies.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -124,22 +124,24 @@ export default class DetailTaxonomiesComponent extends Component {
{{/if}}
</div>
</div>
<div class="content">
{{#if this.isManaging}}
{{#if this.isManaging}}
<div class="content">
<TaxonomyManager
@vocabularies={{@subject.assignableVocabularies}}
@selectedTerms={{this.bufferedTerms}}
@add={{this.addTermToBuffer}}
@remove={{this.removeTermFromBuffer}}
/>
{{else}}
</div>
{{else}}
<div class="content{{unless this.terms.length ' empty'}}">
{{#each @subject.associatedVocabularies as |vocab|}}
{{#if vocab.termCount}}
<DetailTermsList @vocabulary={{vocab}} @terms={{this.terms}} @canEdit={{false}} />
{{/if}}
{{/each}}
{{/if}}
</div>
</div>
{{/if}}
</section>
</template>
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class SessionCollapsedObjectivesComponent extends Component {
</div>
{{#if this.objectivesData.isResolved}}
<div class="content">
<table>
<table class="condensed">
<thead>
<tr>
<th class="text-left">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class SessionObjectivesComponent extends Component {
}
<template>
<section class="session-objectives" data-test-session-objectives>
<div class="header">
<div class="header{{unless this.objectiveCount ' empty'}}">
{{#if this.showCollapsible}}
<div>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@

.detail-learningmaterials-content {
@include m.detail-container-content;
padding: 0.5rem;
padding: 0 0.5em;

table {
margin-bottom: 0;

td {
ul {
@include m.ilios-list-reset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@
.content {
@include m.detail-container-content;

&.empty {
padding: 0 0.5em;
}

.mesh-manager {
padding: 0 0.5em;
}

.selected-mesh-terms {
@include m.ilios-tag-list;
padding: 0 0.5em;

.term-title {
font-weight: bold;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,13 @@

.content {
@include m.detail-container-content;

&.empty {
padding: 0 0.5em;
}

.detail-terms-list {
margin-bottom: 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

.session-offerings-content {
@include m.detail-container-content;

p {
margin: 0;
}
}

.session-offerings-header {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
.instructional-notes {
@include m.ilios-browser-defaults;
grid-column: 1 / -1;
margin-top: 1em;

.fade-text-control {
background-image: linear-gradient(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
justify-content: space-between;
margin-bottom: 0.5em;

&.empty {
margin-bottom: 0;
}

span {
display: flex;
align-items: center;
Expand Down