Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ pre code {
white-space: pre-wrap !important;
}

.rgp-base {
pre {
/**
https://stackoverflow.com/a/73869778/1068446
This seemed to do it for me.
*/
width: 0 !important;
min-width: calc(100% - 2em) !important;
}
}

.react-github-permalink .link-wrapper a {
word-break: break-word;
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/posts/encapsulate_as_much_state_as_possible.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Our test now resembles how we're going to use the component in practise, and it'

## There's nothing say that you couldn't do both

Technically what we could do is do something like expose these components with less functionality as `SpecialButtonStateless` and then use this component in our `SpecialButton` component that then provides the the functionality.
Technically what we could do is do something like expose these components with less functionality as `SpecialButtonStateless` and then use this component in our `SpecialButton` component that then provides the functionality.

I think this would be of limited use - but might be helpful in a larger team with a dedicated design system, and wanting to see the component state statically.
I would argue that the functioning `SpecialButton` component that is the important for actually building the application.
Expand Down
Loading