mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
empty torrent list folder color chenged
This commit is contained in:
@@ -6,6 +6,11 @@ import NoServerConnection from './NoServerConnection'
|
|||||||
import AddFirstTorrent from './AddFirstTorrent'
|
import AddFirstTorrent from './AddFirstTorrent'
|
||||||
|
|
||||||
export default function TorrentList({ isOffline, isLoading, torrents }) {
|
export default function TorrentList({ isOffline, isLoading, torrents }) {
|
||||||
|
return (
|
||||||
|
<CenteredGrid>
|
||||||
|
<AddFirstTorrent />
|
||||||
|
</CenteredGrid>
|
||||||
|
)
|
||||||
if (isLoading || isOffline || !torrents.length) {
|
if (isLoading || isOffline || !torrents.length) {
|
||||||
return (
|
return (
|
||||||
<CenteredGrid>
|
<CenteredGrid>
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
import styled, { css } from 'styled-components'
|
import styled, { css } from 'styled-components'
|
||||||
|
|
||||||
export default styled.div`
|
export default styled.div`
|
||||||
${({ isButton }) => css`
|
${({
|
||||||
|
isButton,
|
||||||
|
theme: {
|
||||||
|
addDialog: { notificationSuccessBGColor, languageSwitchBGColor },
|
||||||
|
},
|
||||||
|
}) => css`
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
padding: 20px 40px;
|
padding: 20px 40px;
|
||||||
@@ -9,12 +14,12 @@ export default styled.div`
|
|||||||
|
|
||||||
${isButton &&
|
${isButton &&
|
||||||
css`
|
css`
|
||||||
background: #88cdaa;
|
background: ${notificationSuccessBGColor};
|
||||||
transition: 0.2s;
|
transition: 0.2s;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
:hover {
|
:hover {
|
||||||
background: #74c39c;
|
background: ${languageSwitchBGColor};
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user