Improve client mobile version
This commit is contained in:
parent
c3488a484e
commit
a01f107bc4
|
@ -28,10 +28,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Used for the fixed menu -->
|
<!-- Used for the fixed menu -->
|
||||||
<div class="col-md-2 col-sm-3 col-xs-3">
|
<div class="fake-menu col-md-2 col-sm-3 col-xs-3">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div [ngClass]="getMainColClasses()">
|
<div class="main-col" [ngClass]="getMainColClasses()">
|
||||||
|
|
||||||
<div class="main-row">
|
<div class="main-row">
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#peertube-title {
|
#peertube-title {
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: inherit !important;
|
color: inherit !important;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -57,6 +57,7 @@ export class AppComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleMenu () {
|
toggleMenu () {
|
||||||
|
window.scrollTo(0, 0)
|
||||||
this.isMenuDisplayed = !this.isMenuDisplayed
|
this.isMenuDisplayed = !this.isMenuDisplayed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +73,7 @@ export class AppComponent implements OnInit {
|
||||||
Object.keys(colSizes).forEach(col => colSizes[col] = 12)
|
Object.keys(colSizes).forEach(col => colSizes[col] = 12)
|
||||||
}
|
}
|
||||||
|
|
||||||
const classes = [ 'main-col' ]
|
const classes = []
|
||||||
Object.keys(colSizes).forEach(col => classes.push(`col-${col}-${colSizes[col]}`))
|
Object.keys(colSizes).forEach(col => classes.push(`col-${col}-${colSizes[col]}`))
|
||||||
|
|
||||||
return classes
|
return classes
|
||||||
|
|
|
@ -6,6 +6,7 @@ menu {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
z-index: 1000;
|
||||||
|
|
||||||
@media screen and (max-width: 550px) {
|
@media screen and (max-width: 550px) {
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
|
||||||
<span class="input-group-addon icon-addon">
|
<span class="hidden-xs input-group-addon icon-addon">
|
||||||
<span class="glyphicon glyphicon-search"></span>
|
<span class="glyphicon glyphicon-search"></span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<div class="col-xs-2 col-md-3 video-small-block video-small-block-share">
|
<div class="col-xs-2 col-md-3 video-small-block video-small-block-share">
|
||||||
<a class="option" (click)="showShareModal()" title="Share the video">
|
<a class="option" (click)="showShareModal()" title="Share the video">
|
||||||
<span class="glyphicon glyphicon-share"></span>
|
<span class="glyphicon glyphicon-share"></span>
|
||||||
<span class="video-small-block-text">Share</span>
|
<span class="hidden-xs video-small-block-text">Share</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
<div class="video-small-block-dropdown" dropdown dropup="true" placement="right">
|
<div class="video-small-block-dropdown" dropdown dropup="true" placement="right">
|
||||||
<a class="option" title="Access to more options" dropdownToggle>
|
<a class="option" title="Access to more options" dropdownToggle>
|
||||||
<span class="glyphicon glyphicon-option-horizontal"></span>
|
<span class="glyphicon glyphicon-option-horizontal"></span>
|
||||||
<span class="video-small-block-text">More</span>
|
<span class="hidden-xs video-small-block-text">More</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
|
<ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
|
||||||
|
|
|
@ -212,12 +212,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 400px) {
|
|
||||||
.video-name-views {
|
|
||||||
font-size: 16px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 800px) {
|
@media screen and (max-width: 800px) {
|
||||||
.video-name-views {
|
.video-name-views {
|
||||||
.video-name {
|
.video-name {
|
||||||
|
@ -242,6 +236,7 @@
|
||||||
|
|
||||||
.video-small-block-author {
|
.video-small-block-author {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -260,4 +255,38 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.video-name-views {
|
||||||
|
font-size: 16px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keep the same hierarchy than max-width: 800px
|
||||||
|
.video-small-blocks {
|
||||||
|
a, .video-small-block-text {
|
||||||
|
font-size: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video-small-block-author {
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.video-details {
|
||||||
|
.video-details-date-description {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.video-details-date {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.video-details-attributes {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
.video-miniature {
|
.video-miniature {
|
||||||
margin-top: 30px;
|
margin: 15px 10px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 190px;
|
height: 190px;
|
||||||
width: 220px;
|
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
|
||||||
.video-miniature-thumbnail {
|
.video-miniature-thumbnail {
|
||||||
|
|
|
@ -25,7 +25,6 @@ input.readonly {
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-col {
|
.main-col {
|
||||||
|
|
||||||
.content-padding {
|
.content-padding {
|
||||||
padding: 15px 30px;
|
padding: 15px 30px;
|
||||||
|
|
||||||
|
@ -47,6 +46,23 @@ input.readonly {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// On small screen, menu is absolute and displayed over the page
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.title-menu-left {
|
||||||
|
width: 120px;
|
||||||
|
position: absolute !important;
|
||||||
|
z-index: 10000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-col {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fake-menu {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
|
// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
|
||||||
.glyphicon-refresh-animate {
|
.glyphicon-refresh-animate {
|
||||||
-animation: spin .7s infinite linear;
|
-animation: spin .7s infinite linear;
|
||||||
|
|
|
@ -12,7 +12,6 @@ import {
|
||||||
makePutBodyRequest,
|
makePutBodyRequest,
|
||||||
setAccessTokensToServers,
|
setAccessTokensToServers,
|
||||||
killallServers,
|
killallServers,
|
||||||
getMyUserInformation,
|
|
||||||
makePostBodyRequest,
|
makePostBodyRequest,
|
||||||
getVideoChannelsList,
|
getVideoChannelsList,
|
||||||
createUser,
|
createUser,
|
||||||
|
@ -22,7 +21,6 @@ import {
|
||||||
describe('Test videos API validator', function () {
|
describe('Test videos API validator', function () {
|
||||||
const path = '/api/v1/videos/channels'
|
const path = '/api/v1/videos/channels'
|
||||||
let server: ServerInfo
|
let server: ServerInfo
|
||||||
let channelId: number
|
|
||||||
let accessTokenUser: string
|
let accessTokenUser: string
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
|
@ -36,9 +34,6 @@ describe('Test videos API validator', function () {
|
||||||
|
|
||||||
await setAccessTokensToServers([ server ])
|
await setAccessTokensToServers([ server ])
|
||||||
|
|
||||||
const res = await getMyUserInformation(server.url, server.accessToken)
|
|
||||||
channelId = res.body.videoChannels[0].id
|
|
||||||
|
|
||||||
const user = {
|
const user = {
|
||||||
username: 'fake',
|
username: 'fake',
|
||||||
password: 'fake_password'
|
password: 'fake_password'
|
||||||
|
|
Loading…
Reference in New Issue