fix: некоторые визуальные исправления

This commit is contained in:
2026-08-13 10:12:29 +03:00
parent e07d6f70e3
commit 18eb9e928a
2 changed files with 8 additions and 4 deletions

View File

@@ -117,7 +117,9 @@ render_forms = function(
},
if (!is.na(description) && !is.na(form_label)) shiny::br(),
if (!is.na(description)) {
shiny::span(shiny::markdown(description)) |> htmltools::tagAppendAttributes(style = "color:gray; font-size:small; line-height: 1.4;")
shiny::markdown(description) |>
shiny::span() |>
htmltools::tagAppendAttributes(style = "color:gray; font-size:small; line-height: 1.4;")
}
)
}
@@ -225,7 +227,7 @@ render_forms = function(
if (form_type == "description_header") {
form <- shiny::h5(
label,
style = "margin-bottom: -8px; margin-top: 10px;"
style = "margin-bottom: 0px; margin-top: 10px;"
)
}
@@ -236,9 +238,11 @@ render_forms = function(
form,
ns = ifelse(missing(ns), shiny::NS(NULL), ns)
)
form <- shiny::tagAppendAttributes(form, style = "margin-top: -10px;")
}
if (is.null(form)) cli::cli_abort("невозможно создать форму типа '{form_type}' (id: '{form_id}') !")
form
}