adapt notifications buttons for small screens

pull/3023/head
Rigel Kent 2020-07-24 12:05:36 +02:00 committed by Rigel Kent
parent 66927c0588
commit 225a7682e6
6 changed files with 43 additions and 7 deletions

View File

@ -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>

View File

@ -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;
}
}
}
}

View File

@ -371,7 +371,7 @@ table {
input[type=email],
textarea,
.peertube-select-container {
width: 100% !important;
flex-grow: 1;
}
.caption input[type=text] {

View File

@ -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'

View File

@ -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'