mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-04-02 11:58:02 +02:00
Improve styles for mobile
This commit is contained in:
parent
3c037d2d49
commit
f010fed810
Binary file not shown.
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 3.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB |
@ -1,16 +1,13 @@
|
||||
{
|
||||
"short_name": "void.cat",
|
||||
"name": "void.cat",
|
||||
"id": "/",
|
||||
"description": "Void.cat file hosting",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo.png",
|
||||
"src": "voidcat_512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "64x64"
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
|
BIN
VoidCat/spa/public/voidcat_512.png
Normal file
BIN
VoidCat/spa/public/voidcat_512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 401 KiB |
@ -1,12 +1,11 @@
|
||||
.page {
|
||||
width: 720px;
|
||||
width: 900px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
@media (max-width: 900px) {
|
||||
.page {
|
||||
width: 100vw;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
@ -1,8 +1,15 @@
|
||||
.file-edit {
|
||||
text-align: start;
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
.file-edit svg {
|
||||
vertical-align: middle;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.file-edit {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
@ -8,17 +8,11 @@
|
||||
text-align: center;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
height: 200px;
|
||||
height: 250px;
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
.drop small {
|
||||
display: block;
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.drop {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
@ -6,6 +6,12 @@
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.upload {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.upload .info {
|
||||
flex: 2;
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
grid-auto-flow: column;
|
||||
margin: 0 30px;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.stats svg {
|
||||
@ -13,9 +14,9 @@
|
||||
.stats > div {
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
@media (max-width: 900px) {
|
||||
.stats {
|
||||
margin: 0 10px;
|
||||
margin: 0 5px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
@ -9,4 +9,8 @@
|
||||
font-size: 30px;
|
||||
line-height: 2;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.header img.logo {
|
||||
height: 80px;
|
||||
}
|
@ -1,10 +1,13 @@
|
||||
import "./Header.css";
|
||||
import VoidCat from "../../image/voidcat.png";
|
||||
|
||||
import {useEffect} from "react";
|
||||
import {Link} from "react-router-dom";
|
||||
import {useDispatch, useSelector} from "react-redux";
|
||||
|
||||
import {InlineProfile} from "./InlineProfile";
|
||||
import {useApi} from "./Api";
|
||||
import {logout, setAuth, setProfile} from "../../LoginState";
|
||||
import {useEffect} from "react";
|
||||
import {setInfo} from "../../SiteInfoStore";
|
||||
|
||||
export function Header() {
|
||||
@ -42,8 +45,12 @@ export function Header() {
|
||||
|
||||
return (
|
||||
<div className="header page">
|
||||
|
||||
<img src={VoidCat} alt="logo" className="logo"/>
|
||||
<div className="title">
|
||||
<Link to="/">{window.location.hostname}</Link>
|
||||
<Link to="/">
|
||||
{window.location.hostname}
|
||||
</Link>
|
||||
</div>
|
||||
{profile ?
|
||||
<InlineProfile profile={profile} options={{
|
||||
|
BIN
VoidCat/spa/src/image/voidcat.png
Normal file
BIN
VoidCat/spa/src/image/voidcat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
Loading…
x
Reference in New Issue
Block a user