mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-07-07 14:22:12 +00:00
UX: Text & width adjustments (#9)
This commit is contained in:
parent
824d4a426b
commit
b3f205375a
@ -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",
|
||||||
|
@ -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() {
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user