-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some styling improvements #5029
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ export default function Body(props: Props) { | |
return ( | ||
<div className="raw-html"> | ||
<div | ||
className="spoiler-text" | ||
className="spoiler-text font-thin" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you use a thin font? Can you please share the image? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cinny has done a good job of creating a highly legible Slack-like messaging UI which we can try to replicate: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, looks good. |
||
style={Object.assign({ wordWrap: 'break-word' }, props.style)} | ||
dangerouslySetInnerHTML={{ __html: emojify(props.status.spoiler_text, props.status.emojis) }} | ||
onClick={props.onClick} | ||
|
@@ -39,7 +39,7 @@ export default function Body(props: Props) { | |
{spoiler()} | ||
{!spoilered && ( | ||
<div | ||
className={`${props.className} raw-html`} | ||
className={`${props.className} raw-html font-thin`} | ||
style={Object.assign({ wordWrap: 'break-word' }, props.style)} | ||
dangerouslySetInnerHTML={{ __html: emojify(props.status.content, props.status.emojis) }} | ||
onClick={props.onClick} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you