mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2025-01-19 07:49:59 +01:00
Fixed order of elements to allow for proper tabbing in comments section (#4099)
* Rearranged elements and fixed css * Fixed unclickable comment sorting at 800<=width --------- Co-authored-by: Wes Appler <wes@lamemakes>
This commit is contained in:
parent
fbd8b8759c
commit
6bbf11f464
@ -24,12 +24,21 @@
|
||||
|
||||
.commentsTitle {
|
||||
padding-block: 1em;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.commentSort {
|
||||
float: var(--float-right-ltr-rtl-value);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 800px) {
|
||||
.commentSort {
|
||||
float: none;
|
||||
inline-size: fit-content;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.comment {
|
||||
padding: 15px;
|
||||
position: relative;
|
||||
|
@ -2,6 +2,22 @@
|
||||
<ft-card
|
||||
class="card"
|
||||
>
|
||||
<h3
|
||||
v-if="commentData.length > 0 && !isLoading && showComments"
|
||||
class="commentsTitle"
|
||||
>
|
||||
{{ $t("Comments.Comments") }}
|
||||
<span
|
||||
class="hideComments"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
@click="showComments = false"
|
||||
@keydown.space.prevent="showComments = false"
|
||||
@keydown.enter.prevent="showComments = false"
|
||||
>
|
||||
{{ $t("Comments.Hide Comments") }}
|
||||
</span>
|
||||
</h3>
|
||||
<h4
|
||||
v-if="canPerformInitialCommentLoading"
|
||||
class="getCommentsTitle"
|
||||
@ -33,22 +49,6 @@
|
||||
:select-values="sortValues"
|
||||
@change="handleSortChange"
|
||||
/>
|
||||
<h3
|
||||
v-if="commentData.length > 0 && !isLoading && showComments"
|
||||
class="commentsTitle"
|
||||
>
|
||||
{{ $t("Comments.Comments") }}
|
||||
<span
|
||||
class="hideComments"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
@click="showComments = false"
|
||||
@keydown.space.prevent="showComments = false"
|
||||
@keydown.enter.prevent="showComments = false"
|
||||
>
|
||||
{{ $t("Comments.Hide Comments") }}
|
||||
</span>
|
||||
</h3>
|
||||
<div
|
||||
v-if="commentData.length > 0 && showComments"
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user