Skip to content

Commit

Permalink
Merge pull request #54 from opensquare-network/fix/inline-code-css
Browse files Browse the repository at this point in the history
fix: inline code css
  • Loading branch information
YoshiyukiSakura authored Aug 17, 2022
2 parents d60d5a5 + fe7003e commit 3f78912
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 5 additions & 0 deletions demo/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ _**Bold Italic Text**_
> > nested quote
> > > nested quote
\`\`\`js
const name = "bar"
function foo() {
Expand All @@ -54,6 +55,10 @@ export function gerPerson(): Person {
\`inline code\`
sim an address \`CwN2XPNZD72r7vZpD6UqTUt2s3gztvWLf7DuzoDtqnNbpZF\`
test github inline code css: \`bounty -> curator(OpenSquare) -> child bounties -> developers bounty -> curator(OpenSquare) -> child bounties -> developers bounty -> curator(OpenSquare) -> child bounties -> developers\`
https://voting.opensquare.io/
|Syntax|Description|TestText|
Expand Down
8 changes: 1 addition & 7 deletions src/components/Html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,9 @@ const Wrapper = styled.div<HtmlProps>`
code {
font-family: i-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace !important;
${no_scroll_bar};
max-width: 100%;
padding: 0 8px;
padding: 2px 8px;
background-color: #f0f3f8 !important;
border-radius: 4px;
white-space: nowrap !important;
word-break: keep-all;
overflow-x: scroll;
display: inline-flex;
}
a {
Expand Down

0 comments on commit 3f78912

Please sign in to comment.