Skip to content

Commit

Permalink
fix: Fix two scrollbars appearing on notice details since preview scr…
Browse files Browse the repository at this point in the history
…ollbar fix
  • Loading branch information
lutangar committed Oct 29, 2020
1 parent a13cfce commit 2441d6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/organisms/NoticeDetails/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styled from 'styled-components';
const MessageBlock = styled.div`
max-height: 200px;
padding-top: 12px;
overflow: auto;
overflow-y: auto;
p {
margin: 0;
Expand Down
10 changes: 1 addition & 9 deletions src/components/organisms/NoticeDetails/NoticeDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ const DetailsMetaValue = styled.div`
margin-left: 10px;
`;

const DetailsScroll = styled.div`
margin-top: 10px;
max-height: 200px;
overflow-y: auto;
`;

const AvatarNotice = styled(Avatar)`
position: relative;
Expand Down Expand Up @@ -254,9 +248,7 @@ class NoticeDetails extends PureComponent<NoticeDetailsProps, CountDownState> {
</DetailsMetaValue>
</DetailsMeta>

<DetailsScroll>
<Message onClick={this.handleMessageClick}>{message}</Message>
</DetailsScroll>
<Message onClick={this.handleMessageClick}>{message}</Message>

<Feedbacks>
<Button onClick={this.handleLikeClick}>
Expand Down

0 comments on commit 2441d6c

Please sign in to comment.