From 18eb9e928a715b8d156517ab8ae0914c292bb800 Mon Sep 17 00:00:00 2001 From: drdolgovvv Date: Thu, 13 Aug 2026 10:12:29 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BD=D0=B5=D0=BA=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D1=8B=D0=B5=20=D0=B2=D0=B8=D0=B7=D1=83=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D1=8B=D0=B5=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- R/modules/utils.R | 10 +++++++--- www/styles.css | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/R/modules/utils.R b/R/modules/utils.R index c390d9d..2f71c8f 100644 --- a/R/modules/utils.R +++ b/R/modules/utils.R @@ -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,10 +238,12 @@ 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 + + form } diff --git a/www/styles.css b/www/styles.css index 97ac71b..e04e2f8 100644 --- a/www/styles.css +++ b/www/styles.css @@ -1,7 +1,7 @@ .description-header { /* 1. Add the border around the whole box */ border-bottom: 2px solid #777777; - + /* 2. Forces border inside the total width/height (prevents breaking layouts) */ box-sizing: border-box;