From 5121d9ab062c21ed80e004ac22562f7ba0c86a2c Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Sat, 2 Dec 2023 13:20:11 -0800 Subject: [PATCH] Add spacing to menu buttons for easier touch input --- srcjs/stendhal.css | 7 ++++++- srcjs/stendhal/ui/dialog/ApplicationMenuDialog.ts | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/srcjs/stendhal.css b/srcjs/stendhal.css index 8f267c4cd00..12d6e2dc4a2 100644 --- a/srcjs/stendhal.css +++ b/srcjs/stendhal.css @@ -248,6 +248,11 @@ div.logcolR { overflow: auto; } +.buttonColumn { + margin-left: 2px; + margin-right: 2px; +} + #minimap { border: 1px solid black; float: left @@ -577,7 +582,7 @@ div.logcolR { font-family: Tally; } -.emojibutton { +.menubutton, .emojibutton { margin: 2px; } diff --git a/srcjs/stendhal/ui/dialog/ApplicationMenuDialog.ts b/srcjs/stendhal/ui/dialog/ApplicationMenuDialog.ts index 34bfc46f812..6e1cb84af71 100644 --- a/srcjs/stendhal/ui/dialog/ApplicationMenuDialog.ts +++ b/srcjs/stendhal/ui/dialog/ApplicationMenuDialog.ts @@ -103,9 +103,9 @@ export class ApplicationMenuDialog extends DialogContentComponent { var content = ""; for (var i = 0; i < this.actions.length; i++) { - content += "

" + stendhal.ui.html.esc(this.actions[i].title) + "

" + content += "

" + stendhal.ui.html.esc(this.actions[i].title) + "

" for (var j = 0; j < this.actions[i].children.length; j++) { - content += "
"; + content += "
"; } content += "
"; }