diff --git a/packages/app/src/pages/document.ejs b/packages/app/src/pages/document.ejs new file mode 100644 index 000000000..3079f0952 --- /dev/null +++ b/packages/app/src/pages/document.ejs @@ -0,0 +1,13 @@ + + + + + Your App + + + +
+ + \ No newline at end of file diff --git a/packages/client/src/global.less b/packages/client/src/global.less new file mode 100644 index 000000000..1412bdf03 --- /dev/null +++ b/packages/client/src/global.less @@ -0,0 +1,27 @@ +.win { + /* width */ + ::-webkit-scrollbar { + width: 8px; + height: 8px; + } + + /* Track */ + ::-webkit-scrollbar-track { + background: #f1f1f1; + } + + /* Handle */ + ::-webkit-scrollbar-thumb { + background: #c0c0c0; + border-radius: 4px; + } + + /* Handle on hover */ + ::-webkit-scrollbar-thumb:hover { + background: #a8a8a8; + } + + .rc-virtual-list-scrollbar-thumb { + background: #c0c0c0 !important; + } +} diff --git a/packages/client/src/index.tsx b/packages/client/src/index.tsx index 6b7700106..0297aae6f 100644 --- a/packages/client/src/index.tsx +++ b/packages/client/src/index.tsx @@ -1,4 +1,5 @@ import debug from 'debug'; +import './global.less'; debug.log = console.log.bind(console); export * from './acl'; diff --git a/packages/client/src/schema-component/antd/input/EllipsisWithTooltip.tsx b/packages/client/src/schema-component/antd/input/EllipsisWithTooltip.tsx index 8a8ad6144..cf201841a 100644 --- a/packages/client/src/schema-component/antd/input/EllipsisWithTooltip.tsx +++ b/packages/client/src/schema-component/antd/input/EllipsisWithTooltip.tsx @@ -21,10 +21,16 @@ export const EllipsisWithTooltip = (props) => { onVisibleChange={(visible) => { setVisible(ellipsis && visible); }} - content={props.children} - overlayStyle={{ - width: 300, - }} + content={ +
+ {props.children} +
+ } >
{ + return { + autoSize: { + maxRows: 10, + minRows: 3, + }, + ...props, + }; + }), + mapReadPretty(ReadPretty.TextArea), +); Input.URL = connect(AntdInput, mapReadPretty(ReadPretty.URL)); export default Input; diff --git a/packages/client/src/schema-component/antd/markdown/Markdown.tsx b/packages/client/src/schema-component/antd/markdown/Markdown.tsx index 3b5f1e96d..0b170dd7a 100644 --- a/packages/client/src/schema-component/antd/markdown/Markdown.tsx +++ b/packages/client/src/schema-component/antd/markdown/Markdown.tsx @@ -10,6 +10,10 @@ export const Markdown: any = connect( AntdInput.TextArea, mapProps((props: any, field) => { return { + autoSize: { + maxRows: 10, + minRows: 3, + }, ...props, suffix: {field?.['loading'] || field?.['validating'] ? : props.suffix}, };