chore: normalize position of web button following BM API drop

This commit is contained in:
aclist 2026-07-27 23:17:49 +09:00
parent c97e34c336
commit 202620c062
2 changed files with 5 additions and 16 deletions

View File

@ -308,7 +308,7 @@ class Options:
force_eventbox: str
self_update: str
no_self_update: str
api_keys: str
api_key: str
prefs: str
mods: str
version: str
@ -405,7 +405,7 @@ options = Options(
"In-app updates are disabled when DZGUI is "
"installed globally (e.g., via package manager)."
),
api_keys="API Keys",
api_key="API Key",
prefs="Preferences",
mods="Mods",
version="Version",

View File

@ -74,7 +74,7 @@ class Options(Gtk.Box):
strings.options.enter_steam, Preferences.STEAM, True
)
api_rows = [
[LeftLabel(strings.options.steam_placeholder), self.steam_box],
[LeftLabel(strings.options.steam_placeholder), self.steam_box, self.steam],
]
self.player_box = self._make_submit_field(
@ -133,20 +133,9 @@ class Options(Gtk.Box):
[LeftLabel(APPNAME_DAYZ_EXP_HUMAN), self.dayz_exp_version_label],
]
api_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
api_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
api_grid = self._make_grid(api_rows)
api_box.add(api_grid)
api_links_box = Gtk.Box(
orientation=Gtk.Orientation.HORIZONTAL,
margin_start=5,
margin_end=5,
margin_top=5,
margin_bottom=10,
homogeneous=True,
spacing=10,
)
api_links_box.add(self.steam)
api_box.add(api_links_box)
prefs_grid = self._make_grid(pref_rows)
version_grid = self._make_grid(version_rows)
@ -167,7 +156,7 @@ class Options(Gtk.Box):
grid.attach(developers, 1, 0, self.DEFAULT_WIDTH, self.DEFAULT_HEIGHT)
for pair in [
(api_box, strings.options.api_keys),
(api_box, strings.options.api_key),
(prefs_grid, strings.options.prefs),
(version_grid, strings.options.version),
]: