style(font): font size 14
This commit is contained in:
@@ -2,7 +2,7 @@ import { createFromIconfontCN } from '@ant-design/icons';
|
|||||||
// import './iconfont/iconfont.js';
|
// import './iconfont/iconfont.js';
|
||||||
|
|
||||||
const IconFont = createFromIconfontCN({
|
const IconFont = createFromIconfontCN({
|
||||||
scriptUrl: '//at.alicdn.com/t/c/font_4613488_ivr9tor4zfm.js'
|
scriptUrl: '//at.alicdn.com/t/c/font_4613488_f316s64919m.js'
|
||||||
});
|
});
|
||||||
|
|
||||||
export default IconFont;
|
export default IconFont;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { DownOutlined, RightOutlined } from '@ant-design/icons';
|
import IconFont from '@/components/icon-font';
|
||||||
import { Button, Checkbox } from 'antd';
|
import { Button, Checkbox } from 'antd';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
@@ -28,7 +28,11 @@ const RowPrefix: React.FC<RowPrefixProps> = (props) => {
|
|||||||
<span style={{ marginRight: 5 }}>
|
<span style={{ marginRight: 5 }}>
|
||||||
{_.isBoolean(expandable) ? (
|
{_.isBoolean(expandable) ? (
|
||||||
<Button type="text" size="small" onClick={handleRowExpand}>
|
<Button type="text" size="small" onClick={handleRowExpand}>
|
||||||
{expanded ? <DownOutlined /> : <RightOutlined />}
|
<IconFont
|
||||||
|
type="icon-down"
|
||||||
|
rotate={expanded ? 0 : -90}
|
||||||
|
className="size-14"
|
||||||
|
></IconFont>
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
expandable
|
expandable
|
||||||
@@ -43,7 +47,11 @@ const RowPrefix: React.FC<RowPrefixProps> = (props) => {
|
|||||||
<div className="row-prefix-wrapper">
|
<div className="row-prefix-wrapper">
|
||||||
{_.isBoolean(expandable) ? (
|
{_.isBoolean(expandable) ? (
|
||||||
<Button type="text" size="small" onClick={handleRowExpand}>
|
<Button type="text" size="small" onClick={handleRowExpand}>
|
||||||
{expanded ? <DownOutlined /> : <RightOutlined />}
|
<IconFont
|
||||||
|
type="icon-down"
|
||||||
|
rotate={expanded ? 0 : -90}
|
||||||
|
className="size-14"
|
||||||
|
></IconFont>
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
expandable
|
expandable
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
min-width: 76px;
|
min-width: 76px;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
font-size: var(--font-size-base);
|
font-size: var(--font-size-small);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.txt {
|
.txt {
|
||||||
|
|||||||
+9
-3
@@ -9,11 +9,15 @@ export default {
|
|||||||
},
|
},
|
||||||
Table: {
|
Table: {
|
||||||
cellFontSize: 14,
|
cellFontSize: 14,
|
||||||
rowSelectedHoverBg: 'rgba(230, 230, 230, 0.88)',
|
rowSelectedHoverBg: 'rgb(249 249 249)',
|
||||||
rowSelectedBg: 'rgb(244, 245, 244)'
|
rowHoverBg: 'rgb(249 249 249)',
|
||||||
|
rowSelectedBg: 'transparent'
|
||||||
},
|
},
|
||||||
Button: {
|
Button: {
|
||||||
contentFontSizeLG: 14
|
contentFontSizeLG: 14,
|
||||||
|
primaryShadow: 'none',
|
||||||
|
defaultShadow: 'none',
|
||||||
|
dangerShadow: 'none'
|
||||||
},
|
},
|
||||||
Tabs: {
|
Tabs: {
|
||||||
titleFontSizeLG: 14
|
titleFontSizeLG: 14
|
||||||
@@ -59,6 +63,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
token: {
|
token: {
|
||||||
|
fontFamily:
|
||||||
|
"'Segoe UI', Roboto, Helvetica, -apple-system, BlinkMacSystemFont, Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
||||||
colorText: 'rgba(0,0,0,1)',
|
colorText: 'rgba(0,0,0,1)',
|
||||||
colorPrimary: '#007BFF',
|
colorPrimary: '#007BFF',
|
||||||
colorSuccess: '#54cc98',
|
colorSuccess: '#54cc98',
|
||||||
|
|||||||
@@ -156,7 +156,6 @@ body * {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'noto sans', sans-serif;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import SealSelect from '@/components/seal-form/seal-select';
|
|||||||
import TooltipList from '@/components/tooltip-list';
|
import TooltipList from '@/components/tooltip-list';
|
||||||
import { PageActionType } from '@/config/types';
|
import { PageActionType } from '@/config/types';
|
||||||
import useAppUtils from '@/hooks/use-app-utils';
|
import useAppUtils from '@/hooks/use-app-utils';
|
||||||
import { QuestionCircleOutlined, RightOutlined } from '@ant-design/icons';
|
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||||||
import { useIntl } from '@umijs/max';
|
import { useIntl } from '@umijs/max';
|
||||||
import {
|
import {
|
||||||
Checkbox,
|
Checkbox,
|
||||||
@@ -478,10 +478,11 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
|||||||
destroyInactivePanel={false}
|
destroyInactivePanel={false}
|
||||||
className={dataformStyles['advanced-collapse']}
|
className={dataformStyles['advanced-collapse']}
|
||||||
expandIcon={({ isActive }) => (
|
expandIcon={({ isActive }) => (
|
||||||
<RightOutlined
|
<IconFont
|
||||||
rotate={isActive ? 90 : 0}
|
type="icon-down"
|
||||||
style={{ fontSize: '12px' }}
|
rotate={isActive ? 0 : -90}
|
||||||
/>
|
style={{ fontSize: '14px' }}
|
||||||
|
></IconFont>
|
||||||
)}
|
)}
|
||||||
items={collapseItems}
|
items={collapseItems}
|
||||||
></Collapse>
|
></Collapse>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import {
|
|||||||
message
|
message
|
||||||
} from 'antd';
|
} from 'antd';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import { useCallback, useState } from 'react';
|
import React, { useCallback, useState } from 'react';
|
||||||
import { useHotkeys } from 'react-hotkeys-hook';
|
import { useHotkeys } from 'react-hotkeys-hook';
|
||||||
import { deleteWorker, queryWorkersList, updateWorker } from '../apis';
|
import { deleteWorker, queryWorkersList, updateWorker } from '../apis';
|
||||||
import { WorkerStatusMapValue, status } from '../config';
|
import { WorkerStatusMapValue, status } from '../config';
|
||||||
@@ -308,7 +308,7 @@ const Workers: React.FC = () => {
|
|||||||
borderRadius: 12
|
borderRadius: 12
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span className="font-700">{key}</span>
|
<span className="font-600">{key}</span>
|
||||||
<span className="text-tertiary">:{value}</span>
|
<span className="text-tertiary">:{value}</span>
|
||||||
</AutoTooltip>
|
</AutoTooltip>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user