Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 86bba54

Browse files
Merge pull request #325 from deckgo/tags-style
style(#324): improve tags style
2 parents 40f3825 + 8d310d7 commit 86bba54

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

studio/src/app/components/feed/card/app-feed-card-tags/app-feed-card-tags.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ app-feed-card-tags {
1010
height: 42px;
1111

1212
div.chips {
13-
background: var(--card-tags-background, rgba(var(--ion-color-primary-rgb), 0.08));
14-
color: var(--card-tags-color, var(--ion-color-primary-shade));
13+
background: var(--card-tags-background, rgba(var(--ion-color-medium-rgb), 0.08));
14+
color: var(--card-tags-color, var(--ion-color-medium));
1515
border-radius: 16px;
1616
display: inline-flex;
1717
align-items: center;
1818
justify-content: center;
1919
padding: 4px 8px;
20-
margin: 4px 4px 4px 0;
21-
height: 100%;
20+
21+
&:not(:first-of-type) {
22+
margin: 0 4px;
23+
}
2224

2325
font-size: var(--font-size-normal);
2426

studio/src/app/components/feed/card/app-feed-card-tags/app-feed-card-tags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class AppFeedCardTags {
3838
return (
3939
<div class="chips">
4040
{this.renderCloseTags(tag)}
41-
<ion-label>{tag}</ion-label>
41+
<ion-label>{this.editable ? '' : '#'}{tag}</ion-label>
4242
</div>
4343
)
4444
})

studio/src/app/components/feed/card/app-feed-card/app-feed-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class AppFeedCard {
138138
{this.renderAuthor()}
139139
</ion-card-header>
140140

141-
<p class="content ion-padding">{this.description}</p>
141+
<p class="content ion-padding-start ion-padding-end ion-padding-bottom">{this.description}</p>
142142

143143
{this.renderTags()}
144144
</ion-card-content>
@@ -165,7 +165,7 @@ export class AppFeedCard {
165165

166166
private renderTags() {
167167
if (this.tags && this.tags.length) {
168-
return <app-feed-card-tags tags={this.tags} class="ion-margin"></app-feed-card-tags>;
168+
return <app-feed-card-tags tags={this.tags} class="ion-margin-start ion-margin-end ion-margin-bottom"></app-feed-card-tags>;
169169
} else {
170170
return undefined;
171171
}

0 commit comments

Comments
 (0)