修复diff和系统设置移动端样式

This commit is contained in:
whyour 2021-03-23 17:17:19 +08:00
parent 39ae979953
commit cfee47b112
2 changed files with 7 additions and 3 deletions

View File

@ -67,6 +67,10 @@ const Crontab = () => {
>
<ReactDiffViewer
styles={{
diffContainer: {
overflowX: 'auto',
minWidth: 768,
},
diffRemoved: {
overflowX: 'auto',
maxWidth: 300,

View File

@ -94,7 +94,7 @@ const Password = () => {
<Tabs
defaultActiveKey="person"
tabPosition="left"
style={{ padding: '16px 0', height: 'calc(100vh - 96px)' }}
style={{ padding: '16px 16px 16px 0', height: 'calc(100vh - 96px)' }}
>
<Tabs.TabPane tab="个人设置" key="person">
<Form onFinish={handleOk} layout="vertical">
@ -103,7 +103,7 @@ const Password = () => {
name="username"
rules={[{ required: true }]}
hasFeedback
style={{ width: 300 }}
style={{ maxWidth: 300 }}
>
<Input placeholder="用户名" autoFocus />
</Form.Item>
@ -112,7 +112,7 @@ const Password = () => {
name="password"
rules={[{ required: true }]}
hasFeedback
style={{ width: 300 }}
style={{ maxWidth: 300 }}
>
<Input type="password" placeholder="密码" />
</Form.Item>