mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Tweak tgui modals to self-resize and support \n
This commit is contained in:
@@ -65,11 +65,13 @@ export class AlertModal extends Component {
|
||||
const { current } = this.state;
|
||||
const focusCurrentButton = () => this.setCurrent(current, false);
|
||||
|
||||
const windowHeight = Math.max(150, message.length);
|
||||
|
||||
return (
|
||||
<Window
|
||||
title={title}
|
||||
width={350}
|
||||
height={150}
|
||||
height={windowHeight}
|
||||
canClose={timeout > 0}>
|
||||
{timeout && <Loader value={timeout} />}
|
||||
<Window.Content
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
.AlertModal__Message {
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.AlertModal__Buttons {
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
.ListInput__Section .Section__titleText {
|
||||
font-size: base.em(12px);
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.ListInput__Loader {
|
||||
|
||||
Reference in New Issue
Block a user