Skip to content

Commit

Permalink
fix: fix hand cursor on non-tappable status (#955)
Browse files Browse the repository at this point in the history
fixes #951
  • Loading branch information
nolanlawson authored Feb 10, 2019
1 parent 135fb24 commit 9cb15a3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/routes/_components/status/Status.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@

<style>
.status-article {
cursor: pointer;
max-width: calc(100vw - 40px);
padding: 10px 20px;
display: grid;
Expand All @@ -62,6 +61,10 @@
grid-template-rows: repeat(8, max-content);
}

.status-article.tap-on-status {
cursor: pointer;
}

.status-article.status-in-timeline {
width: 560px;
border-bottom: 1px solid var(--main-border);
Expand Down Expand Up @@ -269,13 +272,14 @@
status.reblog ||
timelineType === 'pinned'
),
className: ({ visibility, timelineType, isStatusInOwnThread, active, $underlineLinks }) => (classname(
className: ({ visibility, timelineType, isStatusInOwnThread, active, $underlineLinks, $disableTapOnStatus }) => (classname(
'status-article',
visibility === 'direct' && 'status-direct',
timelineType !== 'search' && 'status-in-timeline',
isStatusInOwnThread && 'status-in-own-thread',
active && 'status-active',
$underlineLinks && 'underline-links'
$underlineLinks && 'underline-links',
!$disableTapOnStatus && 'tap-on-status'
)),
content: ({ originalStatus }) => originalStatus.content || '',
showContent: ({ spoilerText, spoilerShown }) => !spoilerText || spoilerShown,
Expand Down

0 comments on commit 9cb15a3

Please sign in to comment.