From 48cbf9adcdd70e7da84e28f39b037cc077465e86 Mon Sep 17 00:00:00 2001 From: "Riley L." Date: Thu, 1 May 2025 22:30:37 +0200 Subject: [PATCH] fix/add wraping on user page --- abrechenbarkeit.lua | 60 ++++++++++++++++++++++----------------------- style.css | 15 ++++++++++++ 2 files changed, 45 insertions(+), 30 deletions(-) diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua index 2b3f9ea..0210865 100755 --- a/abrechenbarkeit.lua +++ b/abrechenbarkeit.lua @@ -467,8 +467,9 @@ local function r_user(username) { time = format_duration(os.time() - last_txn), username = urlencode(username) })) print([[]]) end - print([[
]]) - print([[
]]) + print([[ +
  • +
    ]]) for _, type in ipairs({ 1, -1 }) do for _, amount in ipairs({ 50, 100, 150, 200, 500, 1000 }) do local a = amount * type @@ -486,14 +487,32 @@ local function r_user(username) })) end end - print("
    ") + print("
") print(format([[ -
+
  • +

    {+user.form.transaction}

    + + + + + + +
  • +
  • +

    {+user.form.buy}

    + + + + + + + +
  • +
  • {+user.form.transfer}

    - ]], + { username = username, disable_class = is_special and "disabled" or "" })) local users = get_active_users(); for _, u in ipairs(users) do if u.name ~= username then @@ -508,27 +527,8 @@ local function r_user(username) -
    -
    -

    {+user.form.transaction}

    - - - - - - -
    -
    -

    {+user.form.buy}

    - - - - - - - -
    -
    +
  • +
  • {+user.form.restock}

    @@ -538,9 +538,9 @@ local function r_user(username) -
    +
  • ]], { username = username, disable_class = is_special and "disabled" or "" })) - print("
    ") + print("") end) end diff --git a/style.css b/style.css index a2d8f1f..e1f7a74 100644 --- a/style.css +++ b/style.css @@ -266,6 +266,21 @@ h3 { margin-left: 0; } +ul.userforms { + content: ''; + display: table; + clear: both; + list-style: none; + margin-left: 0.5rem; + padding: 0; +} + +ul.userforms > li { + width: fit-content; + float: left; + padding: 0.5rem; +} + .backgroundbox { width: fit-content; background-color: var(--b0);