mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Tweaks dynamics height adjustment for num input (#25489)
This commit is contained in:
@@ -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
Reference in New Issue
Block a user