Skip to content

Commit 11d083a

Browse files
committed
remove empty state margins and center the empty state vertically
1 parent 20487b0 commit 11d083a

4 files changed

Lines changed: 18 additions & 5 deletions

File tree

modules/@apostrophecms/image/ui/apos/components/AposMediaManager.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,6 @@ export default {
872872
justify-content: center;
873873
width: 100%;
874874
height: 100%;
875-
margin-top: 130px;
876875
}
877876
878877
.apos-media-manager__sidebar {

modules/@apostrophecms/modal/ui/apos/components/AposModalBody.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ export default {
6262
}
6363
}
6464
65+
.apos-modal__body-inner {
66+
display: flex;
67+
flex-direction: column;
68+
height: 100%;
69+
}
70+
6571
.apos-modal__body--flex {
6672
display: flex;
6773
flex-direction: column;
@@ -85,6 +91,10 @@ export default {
8591
padding: 20px;
8692
}
8793
94+
.apos-modal__body-main {
95+
height: 100%;
96+
}
97+
8898
// TODO responsibilty of this setting might change
8999
.apos-modal__body-main .apos-field {
90100
margin-bottom: 40px;

modules/@apostrophecms/piece-type/ui/apos/components/AposDocsManager.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,6 @@ export default {
584584
justify-content: center;
585585
width: 100%;
586586
height: 100%;
587-
margin-top: 130px;
588587
}
589588
590589
.apos-pieces-manager__relationship__rail {

modules/@apostrophecms/ui/ui/apos/components/AposEmptyState.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:icon="emptyState.icon"
99
class="apos-empty-state__indicator"
1010
icon-color="var(--a-base-3)"
11-
:icon-size="32"
11+
:icon-size="48"
1212
/>
1313
</div>
1414
<p
@@ -47,18 +47,23 @@ export default {
4747
}
4848
4949
.apos-empty-state__icon {
50-
margin-bottom: 20px;
50+
margin-bottom: 10px;
5151
}
5252
5353
.apos-empty-state__title {
5454
@include type-title;
5555
5656
& {
57-
margin: 0 0 10px;
57+
margin: 0;
5858
}
5959
}
6060
6161
.apos-empty-state__message {
6262
@include type-large;
63+
64+
& {
65+
text-align: center;
66+
margin-top: 5px;
67+
}
6368
}
6469
</style>

0 commit comments

Comments
 (0)