UX: Text & width adjustments (#9)

This commit is contained in:
Jordan Vidrine 2025-01-22 09:23:40 -06:00 committed by GitHub
parent 824d4a426b
commit b3f205375a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 4 deletions

View File

@ -5,11 +5,11 @@ module DiscourseRewind
class TopWords < BaseReport class TopWords < BaseReport
FakeData = { FakeData = {
data: [ data: [
{ word: "what", score: 100 }, { word: "seven", score: 100 },
{ word: "have", score: 90 }, { word: "longest", score: 90 },
{ word: "you", score: 80 }, { word: "you", score: 80 },
{ word: "overachieved", score: 70 }, { word: "overachieved", score: 70 },
{ word: "this", score: 60 }, { word: "assume", score: 60 },
{ word: "week", score: 50 }, { word: "week", score: 50 },
], ],
identifier: "top-words", identifier: "top-words",

View File

@ -47,7 +47,7 @@ export default class WordCard extends Component {
} }
get longWord() { get longWord() {
return this.args.word.length >= 7; return this.args.word.length >= 5;
} }
get cardStyle() { get cardStyle() {

View File

@ -88,6 +88,16 @@
font-weight: normal; font-weight: normal;
font-size: var(--font-down-1); font-size: var(--font-down-1);
} }
.best-posts__post img {
max-width: 100%;
height: auto;
}
.best-posts__post code,
.best-posts__post pre {
font-family: var(--pixel-text);
font-weight: normal;
font-size: var(--font-down-1);
}
.best-posts__metadata a { .best-posts__metadata a {
font-family: var(--pixel-text); font-family: var(--pixel-text);
text-transform: uppercase; text-transform: uppercase;