mirror of https://github.com/Chocobozzz/PeerTube
adapt notifications buttons for small screens
parent
66927c0588
commit
225a7682e6
|
@ -99,7 +99,7 @@ export class MyAccountVideoChannelsComponent implements OnInit {
|
|||
}
|
||||
}
|
||||
|
||||
resetSearch() {
|
||||
resetSearch () {
|
||||
this.channelsSearch = ''
|
||||
this.onChannelsSearchChanged()
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Notification preferences
|
||||
</a>
|
||||
|
||||
<div class="peertube-select-container peertube-select-button ml-2">
|
||||
<div class="peertube-select-container peertube-select-button ml-2 mr-2">
|
||||
<select [(ngModel)]="notificationSortType" (ngModelChange)="onChangeSortColumn()" class="form-control">
|
||||
<option value="undefined" disabled>Sort by</option>
|
||||
<option value="createdAt" i18n>Newest first</option>
|
||||
|
|
|
@ -32,8 +32,40 @@ my-user-notifications {
|
|||
.header {
|
||||
flex-direction: column;
|
||||
|
||||
& >:first-child {
|
||||
& >:first-child, .peertube-select-container {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.peertube-select-container {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $mobile-view) and (max-width: $small-view) {
|
||||
.header {
|
||||
a {
|
||||
font-size: 0;
|
||||
padding: 0 13px;
|
||||
}
|
||||
|
||||
.peertube-select-container {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $mobile-view) and (max-width: #{$small-view + $menu-width}) {
|
||||
:host-context(.main-col:not(.expanded)) {
|
||||
.header {
|
||||
a {
|
||||
font-size: 0;
|
||||
padding: 0 13px;
|
||||
}
|
||||
|
||||
.peertube-select-container {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -371,7 +371,7 @@ table {
|
|||
input[type=email],
|
||||
textarea,
|
||||
.peertube-select-container {
|
||||
width: 100% !important;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.caption input[type=text] {
|
||||
|
|
|
@ -13,7 +13,12 @@ import {
|
|||
userSubscriptionAddValidator,
|
||||
userSubscriptionGetValidator
|
||||
} from '../../../middlewares'
|
||||
import { areSubscriptionsExistValidator, userSubscriptionsSortValidator, videosSortValidator, userSubscriptionListValidator } from '../../../middlewares/validators'
|
||||
import {
|
||||
areSubscriptionsExistValidator,
|
||||
userSubscriptionsSortValidator,
|
||||
videosSortValidator,
|
||||
userSubscriptionListValidator
|
||||
} from '../../../middlewares/validators'
|
||||
import { VideoModel } from '../../../models/video/video'
|
||||
import { buildNSFWFilter, getCountVideos } from '../../../helpers/express-utils'
|
||||
import { VideoFilter } from '../../../../shared/models/videos/video-query.type'
|
||||
|
|
|
@ -15,8 +15,7 @@ import {
|
|||
Max,
|
||||
Model,
|
||||
Table,
|
||||
UpdatedAt,
|
||||
Sequelize
|
||||
UpdatedAt
|
||||
} from 'sequelize-typescript'
|
||||
import { FollowState } from '../../../shared/models/actors'
|
||||
import { ActorFollow } from '../../../shared/models/actors/follow.model'
|
||||
|
|
Loading…
Reference in New Issue