Reformatting Channel page to display buttons better on mobile. Creating BackButton to consolidate functionality. Expanding search input on mobile.

This commit is contained in:
Roland 2022-11-30 19:31:18 -07:00
parent 759560dc6f
commit 9f52f41d56
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
6 changed files with 235 additions and 225 deletions

View file

@ -2,7 +2,7 @@ import React, {useContext, useState} from 'react';
import {deleteVideos} from "../api";
import {Link, useNavigate, useParams} from "react-router-dom";
import _ from "lodash";
import {humanFileSize, humanNumber, PageContainer, uploadDate, useTitle} from "./Common";
import {BackButton, humanFileSize, humanNumber, PageContainer, uploadDate, useTitle} from "./Common";
import {Confirm} from "semantic-ui-react";
import Grid from "semantic-ui-react/dist/commonjs/collections/Grid";
import Container from "semantic-ui-react/dist/commonjs/elements/Container";
@ -153,14 +153,8 @@ function VideoPage({videoFile, prevFile, nextFile, setFavorite, ...props}) {
const tabMenu = theme === darkTheme ? {inverted: true, attached: true} : {attached: true};
return (<>
<Container>
<Button
style={{marginTop: '1em', marginBottom: '1em'}}
onClick={() => navigate(-1)}
>
<Icon name='left arrow'/>
Back
</Button>
<Container style={{margin: '1em'}}>
<BackButton/>
</Container>
<video controls