Tweaks dynamics height adjustment for num input (#25489)

This commit is contained in:
Matt
2024-05-18 08:25:10 +00:00
committed by GitHub
parent 2ac2dbca44
commit a6dc4f43fa
2 changed files with 6 additions and 2 deletions
@@ -34,7 +34,11 @@ export const NumberInputModal = (props, context) => {
};
// Dynamically changes the window height based on the message.
const windowHeight =
120 + (message.length > 30 ? Math.ceil(message.length / 3) : 0);
140 +
Math.max(
Math.ceil(message.length / 3),
message.length > 0 && large_buttons ? 5 : 0
);
return (
<Window title={title} width={270} height={windowHeight}>
File diff suppressed because one or more lines are too long