[mobile] Fix view comment for tablet

This commit is contained in:
JuliaSvinareva 2021-05-17 19:51:12 +03:00
parent 383620fbc7
commit 537f007461
2 changed files with 18 additions and 6 deletions

View file

@ -726,6 +726,7 @@ const CommentList = inject("storeComments", "storeAppOptions")(observer(({storeC
<Link href='#' onClick={onViewNextComment}><Icon slot='media' icon='icon-next'/></Link>
</div>
</Toolbar>
<div className='pages'>
<Page className='page-current-comment'>
<List className='comment-list'>
<ListItem>
@ -794,6 +795,7 @@ const CommentList = inject("storeComments", "storeAppOptions")(observer(({storeC
<CommentActions comment={comment} onCommentMenuClick={onCommentMenuClick} opened={commentActionsOpened} openActionComment={openActionComment}/>
<ReplyActions comment={comment} reply={reply} onCommentMenuClick={onCommentMenuClick} opened={replyActionsOpened} openActionReply={openActionReply}/>
</Page>
</div>
</Fragment>
)
}));
@ -830,7 +832,6 @@ const ViewCommentSheet = ({closeCurComments, onCommentMenuClick, onResolveCommen
}
};
const handleTouchEnd = (event) => {
console.log('end');
const touchObj = event.changedTouches[0];
const swipeEnd = parseInt(touchObj.clientY);
const dist = swipeEnd - stateStartY;

View file

@ -165,9 +165,15 @@
#view-comment-popover {
background-color: @white;
.page .page-content {
padding: 16px;
padding-left: 0;
.pages {
position: absolute;
}
.page {
border-radius: var(--f7-popover-border-radius);
.page-content {
padding: 16px 16px 60px 0;
border-radius: var(--f7-popover-border-radius);
}
}
.comment-list {
.item-content {
@ -178,6 +184,9 @@
}
}
}
.toolbar {
border-radius: 0 0 var(--f7-popover-border-radius) var(--f7-popover-border-radius);
}
}
.page-current-comment {
@ -200,10 +209,12 @@
}
}
.dialog.modal-in {
z-index: 14000;
}
.dialog-backdrop.backdrop-in {
&.over-popover {
z-index: 13600;
}
}
.no-comments {