Skip to content

Commit 72259b1

Browse files
authored
Add centeredItems setting
1 parent 2cf970d commit 72259b1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

usergui.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class UserGui {
4141
}
4242
},
4343
"gui" : {
44+
"centeredItems" : false,
4445
"internal" : {
4546
"darkCloseButton" : false,
4647
"style" : `
@@ -269,6 +270,14 @@ class UserGui {
269270
<style>
270271
${bootstrapStyling}
271272
${this.settings.gui.external.style}
273+
${
274+
this.settings.gui.centeredItems
275+
? `.form-group {
276+
display: flex;
277+
justify-content: center;
278+
}`
279+
: ""
280+
}
272281
</style>
273282
</head>
274283
<body>
@@ -287,6 +296,14 @@ class UserGui {
287296
body {
288297
width: ${this.settings.window.size.width}px
289298
}
299+
${
300+
this.settings.gui.centeredItems
301+
? `.form-group {
302+
display: flex;
303+
justify-content: center;
304+
}`
305+
: ""
306+
}
290307
</style>
291308
</head>
292309
<body>

0 commit comments

Comments
 (0)