mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Improve: optimize proxies page style
This commit is contained in:
parent
e5d2801a62
commit
582d82868d
@ -1,5 +1 @@
|
||||
@import '~@styles/common';
|
||||
|
||||
.page-container {
|
||||
width: 545px;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ interface ProxyProps extends BaseComponentProps {
|
||||
name: string
|
||||
}
|
||||
|
||||
const Proxy: React.SFC<ProxyProps> = props => {
|
||||
export const Proxy: React.SFC<ProxyProps> = props => {
|
||||
const { type, name, className } = props
|
||||
const icon = iconMapping[type]
|
||||
return (
|
||||
@ -26,5 +26,3 @@ const Proxy: React.SFC<ProxyProps> = props => {
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Proxy
|
@ -4,23 +4,23 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
justify-content: center;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
box-shadow: 0 0 20px rgba($color-primary-dark, 0.2);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.proxy-icon {
|
||||
margin-top: 12px;
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
.proxy-name {
|
||||
width: 80%;
|
||||
margin-top: 6px;
|
||||
margin-top: 8px;
|
||||
color: $color-primary-dark;
|
||||
font-size: 10px;
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
1
src/containers/Proxies/components/index.ts
Normal file
1
src/containers/Proxies/components/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './Proxy'
|
@ -2,7 +2,7 @@ import * as React from 'react'
|
||||
import { Header, Icon } from '@components'
|
||||
import { ProxyType } from '@models'
|
||||
|
||||
import Proxy from './Proxy'
|
||||
import { Proxy } from './components'
|
||||
import './style.scss'
|
||||
|
||||
export class Proxies extends React.Component<{}, {}> {
|
||||
|
@ -1,6 +1,7 @@
|
||||
@import '~@styles/variables';
|
||||
|
||||
.proxies-list {
|
||||
margin: 10px 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
list-style: none;
|
||||
|
Loading…
x
Reference in New Issue
Block a user