mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: height calculation for full-height tabs in approval initiation and approval block (#4686)
This commit is contained in:
parent
bb82faf583
commit
8a7e86fdd6
@ -181,7 +181,7 @@ export const MarkdownVoid: any = withDynamicSchemaProps(
|
||||
) : (
|
||||
<div
|
||||
className={cls([componentCls, hashId, 'nb-markdown nb-markdown-default nb-markdown-table', className])}
|
||||
style={{ ...props.style, height: height || '100%' }}
|
||||
style={{ ...props.style, height: height || '100%', overflowY: height ? 'auto' : 'null' }}
|
||||
dangerouslySetInnerHTML={{ __html: html }}
|
||||
/>
|
||||
);
|
||||
|
@ -49,7 +49,7 @@ const usePageFullScreenHeight = (props?) => {
|
||||
const { token } = theme.useToken();
|
||||
const { designable } = useDesignable();
|
||||
const { heightProps } = useBlockHeightProps();
|
||||
const { disablePageHeader, enablePageTabs, hidePageTitle } = heightProps || props || {};
|
||||
const { disablePageHeader, enablePageTabs, hidePageTitle } = props || heightProps || {};
|
||||
const navHeight = token.sizeXXL - 2;
|
||||
const addBlockBtnHeight = designable
|
||||
? token.controlHeight + 2 * token.paddingContentHorizontalLG
|
||||
@ -90,7 +90,7 @@ const useTableHeight = () => {
|
||||
const { designable } = useDesignable();
|
||||
const schema = useFieldSchema();
|
||||
const heightProps = tableHeightProps || blockHeightProps;
|
||||
const pageFullScreenHeight = useFullScreenHeight();
|
||||
const pageFullScreenHeight = useFullScreenHeight(heightProps);
|
||||
const { data } = useDataBlockRequest();
|
||||
const { name } = useCollection();
|
||||
const { count, pageSize } = (data as any)?.meta || ({} as any);
|
||||
|
@ -56,9 +56,12 @@ export const SchemaSettingsBlockHeightItem = function BlockTitleItem() {
|
||||
'x-component': 'InputNumber',
|
||||
'x-component-props': {
|
||||
addonAfter: 'px',
|
||||
min: 250,
|
||||
max: 2000,
|
||||
},
|
||||
'x-validator': [
|
||||
{
|
||||
minimum: 200,
|
||||
},
|
||||
],
|
||||
'x-reactions': {
|
||||
dependencies: ['heightMode'],
|
||||
fulfill: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user