Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit b2af2ed

Browse files
authored
Merge pull request #5152 from withspectrum/fix-like-button
Fix like buttons and thread zindexes
2 parents 2d0c51b + 964d8b4 commit b2af2ed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/threadLikes/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export const LikeButtonWrapper = styled(Button)`
1717
overflow: hidden;
1818
padding: 0;
1919
padding-left: 16px;
20-
pointer-events: none;
2120
2221
div + span {
2322
margin: 0;
@@ -49,6 +48,7 @@ export const LikeCountWrapper = styled.div`
4948
margin-right: 12px;
5049
color: ${props =>
5150
props.active ? props.theme.text.reverse : props.theme.text.alt};
51+
pointer-events: none;
5252
5353
${CurrentCount} {
5454
margin-left: 4px;

src/views/thread/style.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export const ThreadWrapper = styled(FlexCol)`
145145
/* manually nudge up 60px to cover the sliding header in the thread view */
146146
top: -68px;
147147
margin-bottom: -68px;
148+
z-index: 3;
148149
149150
${props =>
150151
props.isEditing &&
@@ -906,4 +907,6 @@ export const BylineContainer = styled.div`
906907
margin-left: -16px;
907908
margin-right: -16px;
908909
margin-top: -16px;
910+
position: relative;
911+
z-index: 1000;
909912
`;

0 commit comments

Comments
 (0)