adapt notifications buttons for small screens
This commit is contained in:
parent
66927c0588
commit
225a7682e6
|
@ -99,7 +99,7 @@ export class MyAccountVideoChannelsComponent implements OnInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resetSearch() {
|
resetSearch () {
|
||||||
this.channelsSearch = ''
|
this.channelsSearch = ''
|
||||||
this.onChannelsSearchChanged()
|
this.onChannelsSearchChanged()
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
Notification preferences
|
Notification preferences
|
||||||
</a>
|
</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">
|
<select [(ngModel)]="notificationSortType" (ngModelChange)="onChangeSortColumn()" class="form-control">
|
||||||
<option value="undefined" disabled>Sort by</option>
|
<option value="undefined" disabled>Sort by</option>
|
||||||
<option value="createdAt" i18n>Newest first</option>
|
<option value="createdAt" i18n>Newest first</option>
|
||||||
|
|
|
@ -32,8 +32,40 @@ my-user-notifications {
|
||||||
.header {
|
.header {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
& >:first-child {
|
& >:first-child, .peertube-select-container {
|
||||||
margin-bottom: 15px;
|
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],
|
input[type=email],
|
||||||
textarea,
|
textarea,
|
||||||
.peertube-select-container {
|
.peertube-select-container {
|
||||||
width: 100% !important;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.caption input[type=text] {
|
.caption input[type=text] {
|
||||||
|
|
|
@ -13,7 +13,12 @@ import {
|
||||||
userSubscriptionAddValidator,
|
userSubscriptionAddValidator,
|
||||||
userSubscriptionGetValidator
|
userSubscriptionGetValidator
|
||||||
} from '../../../middlewares'
|
} 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 { VideoModel } from '../../../models/video/video'
|
||||||
import { buildNSFWFilter, getCountVideos } from '../../../helpers/express-utils'
|
import { buildNSFWFilter, getCountVideos } from '../../../helpers/express-utils'
|
||||||
import { VideoFilter } from '../../../../shared/models/videos/video-query.type'
|
import { VideoFilter } from '../../../../shared/models/videos/video-query.type'
|
||||||
|
|
|
@ -15,8 +15,7 @@ import {
|
||||||
Max,
|
Max,
|
||||||
Model,
|
Model,
|
||||||
Table,
|
Table,
|
||||||
UpdatedAt,
|
UpdatedAt
|
||||||
Sequelize
|
|
||||||
} from 'sequelize-typescript'
|
} from 'sequelize-typescript'
|
||||||
import { FollowState } from '../../../shared/models/actors'
|
import { FollowState } from '../../../shared/models/actors'
|
||||||
import { ActorFollow } from '../../../shared/models/actors/follow.model'
|
import { ActorFollow } from '../../../shared/models/actors/follow.model'
|
||||||
|
|
Loading…
Reference in New Issue