Skip to content

Commit b3f2053

Browse files
UX: Text & width adjustments (#9)
1 parent 824d4a4 commit b3f2053

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Diff for: app/services/discourse_rewind/action/top_words.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ module Action
55
class TopWords < BaseReport
66
FakeData = {
77
data: [
8-
{ word: "what", score: 100 },
9-
{ word: "have", score: 90 },
8+
{ word: "seven", score: 100 },
9+
{ word: "longest", score: 90 },
1010
{ word: "you", score: 80 },
1111
{ word: "overachieved", score: 70 },
12-
{ word: "this", score: 60 },
12+
{ word: "assume", score: 60 },
1313
{ word: "week", score: 50 },
1414
],
1515
identifier: "top-words",

Diff for: assets/javascripts/discourse/components/reports/top-words/word-card.gjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class WordCard extends Component {
4747
}
4848

4949
get longWord() {
50-
return this.args.word.length >= 7;
50+
return this.args.word.length >= 5;
5151
}
5252

5353
get cardStyle() {

Diff for: assets/stylesheets/common/best-posts.scss

+10
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@
8888
font-weight: normal;
8989
font-size: var(--font-down-1);
9090
}
91+
.best-posts__post img {
92+
max-width: 100%;
93+
height: auto;
94+
}
95+
.best-posts__post code,
96+
.best-posts__post pre {
97+
font-family: var(--pixel-text);
98+
font-weight: normal;
99+
font-size: var(--font-down-1);
100+
}
91101
.best-posts__metadata a {
92102
font-family: var(--pixel-text);
93103
text-transform: uppercase;

0 commit comments

Comments
 (0)