From 086b9918542ceefcc543c55adb54baade93e27f4 Mon Sep 17 00:00:00 2001 From: jazzari Date: Fri, 24 Nov 2023 16:54:00 +0100 Subject: [PATCH] fix: agregadas modificaciones a vista desktop #13587 --- app/assets/stylesheets/application.scss | 2 +- app/views/sites/_designs.haml | 12 ++++++------ config/locales/es.yml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index e35d02bc..b352df45 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -315,7 +315,7 @@ svg { .designpreview { border-left: 1px solid cyan; - border-right: 1px solid cyan; + border-right: 1px dashed cyan; } .designs { diff --git a/app/views/sites/_designs.haml b/app/views/sites/_designs.haml index 2cfecf6d..49362770 100644 --- a/app/views/sites/_designs.haml +++ b/app/views/sites/_designs.haml @@ -10,17 +10,17 @@ -# Desktop view with 3 columns and radio_buttons .row.designs.d-none.d-lg-flex - @designs = Design.all.order(priority: :desc).reject(&:no_theme?) - .col-md-3.designlist + .col-md-4.designlist %h2.pb-3= t('.selector') - @designs.each do |design| - .col.d-flex.flex-column.custom-control-design{"data-controller" => "designs"} - %div{"data-designs-target" => "radio", "data-action" => "click->designs#selection"} + .col.d-flex.flex-column.custom-control-design + %div = f.radio_button :design_id, design.id, checked: design.id == site.design_id, disabled: design.disabled, required: true, class: 'radio-toolbar' = f.label "design_id_#{design.id}", " - #{design.name}", - class: 'font-size-bold' + class: 'h5 font-weight-bolder' .flex-fill.f-3 = sanitize_markdown design.description, tags: %w[p a strong em] @@ -28,9 +28,9 @@ %h2.text-center.pb-3= t('.preview') .embed-responsive.embed-responsive-1by1 %iframe.embed-responsive-item{allowfullscreen: "", src: "/placeholder.png"} - .col-md-3 + .col-md-2 %h2.pb-3= t('.characteristics') - %div{"data-designs-target" => "infocar"} + %div %p.design 1. Es gratis %p.design 2. Sofware libre - Licencia GPL %p.design 3. Compatible con la web distribuida diff --git a/config/locales/es.yml b/config/locales/es.yml index fac1ad9e..bc01334b 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -466,7 +466,7 @@ es: help: 'Puedes configurar tu tienda aquí.' designs: selector: 'Selector de Plantillas' - preview: 'Previsualizar Plantilla' + preview: 'Previsualización de Plantilla' characteristics: 'Características' source_code: 'Ver código fuente' custom: