mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix window focus
This commit is contained in:
@@ -15,6 +15,10 @@ import { ToastContainer } from 'react-toastify';
|
|||||||
|
|
||||||
|
|
||||||
const GlobalStyle = createGlobalStyle`
|
const GlobalStyle = createGlobalStyle`
|
||||||
|
*:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
@@ -5,24 +5,6 @@ import styled from "styled-components";
|
|||||||
import useBoardStore from "../useBoardStore";
|
import useBoardStore from "../useBoardStore";
|
||||||
|
|
||||||
const StyledModal = styled(Modal)`
|
const StyledModal = styled(Modal)`
|
||||||
.modal-content {
|
|
||||||
width: 400px;
|
|
||||||
height: 800px;
|
|
||||||
display: flex;
|
|
||||||
align-self: center;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
background-color: rgba(0, 0, 0, 0.85);
|
|
||||||
padding: 0;
|
|
||||||
z-index: 9999;
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
top: 60px;
|
top: 60px;
|
||||||
width: 330px;
|
width: 330px;
|
||||||
@@ -64,7 +46,8 @@ const StyledModal = styled(Modal)`
|
|||||||
${({ selectedStyle }) => {
|
${({ selectedStyle }) => {
|
||||||
switch (selectedStyle) {
|
switch (selectedStyle) {
|
||||||
case 'Yotsuba':
|
case 'Yotsuba':
|
||||||
return `.panel {
|
return `
|
||||||
|
.panel {
|
||||||
background-color: #f0e0d6;
|
background-color: #f0e0d6;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -77,7 +60,8 @@ const StyledModal = styled(Modal)`
|
|||||||
}`;
|
}`;
|
||||||
|
|
||||||
case 'Yotsuba-B':
|
case 'Yotsuba-B':
|
||||||
return `.panel {
|
return `
|
||||||
|
.panel {
|
||||||
background-color: #d6daf0;
|
background-color: #d6daf0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,7 +74,8 @@ const StyledModal = styled(Modal)`
|
|||||||
}`;
|
}`;
|
||||||
|
|
||||||
case 'Futaba':
|
case 'Futaba':
|
||||||
return `.panel {
|
return `
|
||||||
|
.panel {
|
||||||
background-color: #f0e0d6;
|
background-color: #f0e0d6;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +88,8 @@ const StyledModal = styled(Modal)`
|
|||||||
}`;
|
}`;
|
||||||
|
|
||||||
case 'Burichan':
|
case 'Burichan':
|
||||||
return `.panel {
|
return `
|
||||||
|
.panel {
|
||||||
background-color: #d6daf0;
|
background-color: #d6daf0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,7 +102,8 @@ const StyledModal = styled(Modal)`
|
|||||||
}`;
|
}`;
|
||||||
|
|
||||||
case 'Tomorrow':
|
case 'Tomorrow':
|
||||||
return `.panel {
|
return `
|
||||||
|
.panel {
|
||||||
background-color: #282a2e;
|
background-color: #282a2e;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,7 +116,8 @@ const StyledModal = styled(Modal)`
|
|||||||
}`;
|
}`;
|
||||||
|
|
||||||
case 'Photon':
|
case 'Photon':
|
||||||
return `.panel {
|
return `
|
||||||
|
.panel {
|
||||||
background-color: #ddd;
|
background-color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user