🐛 fix: ComfyUI extension canvas height (#516)

pull/518/head
kaalibro 2024-01-16 02:13:48 +06:00
parent 326cbe79d9
commit 4111c01add
No known key found for this signature in database
3 changed files with 53 additions and 40 deletions

File diff suppressed because one or more lines are too long

View File

@ -18,7 +18,7 @@ import QuickSettingSidebar from '../features/QuickSettingSidebar';
import Share from '../features/Share';
import { useStyles } from './style';
const HEADER_HEIGHT = 64;
export const HEADER_HEIGHT = 64;
const Index = memo(() => {
const setting = useAppStore(selectors.currentSetting, isEqual);

View File

@ -1,5 +1,7 @@
import { Theme, css } from 'antd-style';
import { HEADER_HEIGHT } from '../../app/index';
export default (token: Theme) => {
return css`
#root {
@ -195,6 +197,11 @@ export default (token: Theme) => {
}
}
}
/* ComfyUI */
#comfyui_webui_container {
height: calc(100% - ${HEADER_HEIGHT}px) !important;
}
}
`;
};