Skip to content

Commit e982079

Browse files
emmanuelbaagoogle-labs-jules[bot]Mutugiiidogi
authored
community: smoother services buttons formatting (fixes #9137) (#9228)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: mutugiii <[email protected]> Co-authored-by: dogi <[email protected]>
1 parent 7643c43 commit e982079

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "planet",
33
"license": "AGPL-3.0",
4-
"version": "0.20.61",
4+
"version": "0.20.62",
55
"myplanet": {
66
"latest": "v0.36.25",
77
"min": "v0.35.25"

src/app/community/community.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ <h3 mat-subheader i18n>Social & Web</h3>
101101
<ng-template #noLinks>
102102
<p i18n>No links available.</p>
103103
</ng-template>
104-
<ng-container *planetAuthorizedRoles="''">
104+
<div *planetAuthorizedRoles="''" class="action-buttons">
105105
<button (click)="openAddLinkDialog()" mat-stroked-button i18n>Add Link</button>
106106
<button (click)="toggleDeleteMode()" [disabled]="links.length===0" mat-stroked-button>
107107
<span *ngIf="!deleteMode" i18n>Remove Links</span>
108108
<span *ngIf="deleteMode" i18n>Done Removing Links</span>
109109
</button>
110-
</ng-container>
110+
</div>
111111
</mat-tab>
112112
<mat-tab *ngIf="configuration.planetType==='nation' && isLoggedIn" i18n-label label="Communities">
113113
<planet-community-list></planet-community-list>

src/app/community/community.scss

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@
1414
grid-template-columns: 1fr;
1515
grid-template-areas: "news";
1616
}
17+
18+
.toggle-button {
19+
margin-bottom: 1rem;
20+
}
21+
22+
.action-buttons {
23+
button {
24+
margin-top: 0.5rem;
25+
}
26+
}
27+
28+
.responsive-toolbar {
29+
border-radius: 7.5px;
30+
}
31+
32+
.label-icon {
33+
vertical-align: middle;
34+
margin-right: 4px;
35+
}
1736
}
1837

1938
.community-news {
@@ -60,14 +79,6 @@ mat-tab-group, mat-tab {
6079
padding-top: 0.5rem;
6180
}
6281

63-
.toggle-button {
64-
margin-bottom: 1rem;
65-
}
66-
67-
.community-view .responsive-toolbar {
68-
border-radius: 7.5px;
69-
}
70-
7182
.toolbar-row {
7283
display: flex;
7384
flex-wrap: wrap;
@@ -94,11 +105,6 @@ mat-tab-group, mat-tab {
94105
}
95106
}
96107

97-
.label-icon {
98-
vertical-align: middle;
99-
margin-right: 4px;
100-
}
101-
102108
@media only screen and (max-width: $screen-sm) {
103109
.community-view .responsive-toolbar {
104110
height: auto;

0 commit comments

Comments
 (0)