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

Commit dd10928

Browse files
style: publish on small devices
1 parent 46e8a31 commit dd10928

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ app-feed-card-content {
33
ion-card-content {
44
display: flex;
55
align-items: stretch;
6-
flex: 1 1 auto;
76
width: 100%;
87

98
ion-card-title, ion-card-subtitle {
@@ -85,7 +84,10 @@ app-feed-card-content {
8584

8685
@media screen and (max-width: 540px) {
8786
ion-card-content {
88-
div.preview {
87+
flex-direction: column;
88+
align-items: center;
89+
90+
div.preview:not(.editable) {
8991
display: none;
9092
}
9193
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class AppFeedCardContent {
9696
</ion-card-subtitle>
9797
</ion-card-header>
9898

99-
<p padding-start padding-end class="content ion-text-lowercase" contentEditable={this.editable}>Keep
99+
<p padding-start padding-end class="content" contentEditable={this.editable}>Keep
100100
close to Nature's heart... and break clear away, once in
101101
awhile,
102102
and climb a mountain or spend a week in the woods. Wash your spirit clean.
@@ -115,7 +115,7 @@ export class AppFeedCardContent {
115115
if (this.firstCard) {
116116
return undefined;
117117
} else {
118-
return <div class="preview">
118+
return <div class={this.editable ? "preview editable" : "preview"}>
119119
<img src="./assets/img/deckdeckgo-logo.svg"/>
120120
</div>;
121121
}

0 commit comments

Comments
 (0)