Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
5b093da0
Commit
5b093da0
authored
4 years ago
by
Derek Schaller
Browse files
Options
Download
Email Patches
Plain Diff
use styled
parent
0605fe2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/packages/core/src/text.tsx
+6
-2
frontend/packages/core/src/text.tsx
with
6 additions
and
2 deletions
+6
-2
frontend/packages/core/src/text.tsx
+
6
-
2
View file @
5b093da0
...
...
@@ -9,6 +9,10 @@ const CopyButtonContainer = styled(Grid)({
flex
:
0
,
});
const
ContentContainer
=
styled
(
Grid
)({
flex
:
1
,
});
const
Pre
=
styled
.
pre
({
border
:
"
1px solid rgba(13, 16, 48, 0.38)
"
,
backgroundColor
:
"
rgba(13,16,48,0.12)
"
,
...
...
@@ -39,9 +43,9 @@ const Code = ({ children, showCopyButton = true }: CodeProps) => (
</
Fab
>
</
CopyButtonContainer
>
)
}
<
Grid
style
=
{
{
flex
:
1
}
}
c
ontainer
justify
=
"flex-start"
alignItems
=
"center"
>
<
ContentC
ontainer
justify
=
"flex-start"
alignItems
=
"center"
>
{
children
}
</
Grid
>
</
ContentContainer
>
</
Pre
>
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help