mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Chore: clashx style adjust
This commit is contained in:
parent
f730bc7380
commit
d3dcb2fa23
@ -1,4 +1,5 @@
|
||||
import React, { useEffect } from 'react'
|
||||
import classnames from 'classnames'
|
||||
import capitalize from 'lodash/capitalize'
|
||||
import { Header, Card, Row, Col, Switch, ButtonSelect, ButtonSelectOptions, Input, Icon } from '@components'
|
||||
import { useI18n, useClashXData, useAPIInfo, useGeneral, useIdentity } from '@stores'
|
||||
@ -179,7 +180,9 @@ export default function Settings () {
|
||||
<span className="label">{t('labels.externalController')}</span>
|
||||
</Col>
|
||||
<Col className="external-controller" span={10}>
|
||||
<span className="modify-btn" onClick={() => setIdentity(false)}>
|
||||
<span
|
||||
className={classnames({ 'modify-btn': !clashXData.isClashX })}
|
||||
onClick={() => !clashXData.isClashX && setIdentity(false)}>
|
||||
{`${externalControllerHost}:${externalControllerPort}`}
|
||||
</span>
|
||||
</Col>
|
||||
|
@ -9,7 +9,7 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
width: 140px;
|
||||
width: 160px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user