Skip to content

Commit 56aaca8

Browse files
committed
chore: style impros resolver description
1 parent 859834b commit 56aaca8

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

web/src/pages/Resolver/Briefing/Description.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ const Container = styled.div`
1717
align-items: center;
1818
`;
1919

20-
const StyledMarkdownEditor = styled(MarkdownEditor)`
21-
width: 84vw;
20+
const MarkdownEditorContainer = styled.div`
2221
${landscapeStyle(
2322
() => css`
2423
width: ${responsiveSize(442, 700, 900)};
@@ -49,12 +48,14 @@ const Description: React.FC = () => {
4948
return (
5049
<Container ref={containerRef}>
5150
<Header text="Describe the case" />
52-
<StyledMarkdownEditor
53-
value={disputeData.description}
54-
onChange={handleWrite}
55-
placeholder="eg. Bob hired Alice to develop a website for him. Bob claims the contract was not fully respected, and the website was delivered incomplete. For that reason, he wants to pay part of the agreed payment: 150 DAI. On the other hand, Alice claims she should receive the full payment: 250 DAI."
56-
showMessage={false}
57-
/>
51+
<MarkdownEditorContainer>
52+
<MarkdownEditor
53+
value={disputeData.description}
54+
onChange={handleWrite}
55+
placeholder="eg. Bob hired Alice to develop a website for him, but Bob failed to deliver..."
56+
showMessage={false}
57+
/>
58+
</MarkdownEditorContainer>
5859
<NavigationButtons prevRoute="/resolver/title" nextRoute="/resolver/court" />
5960
</Container>
6061
);

web/src/styles/mdxEditorTheme.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export const MDXEditorContainer = styled.div`
6969
width: 100%;
7070
7171
.mdxeditor-toolbar {
72+
display: flex;
73+
flex-wrap: wrap;
7274
background-color: ${({ theme }) => theme.lightGrey} !important;
7375
border: 1px solid ${({ theme }) => theme.stroke} !important;
7476
border-radius: 3px;

0 commit comments

Comments
 (0)