From 68973b0a236d833714c8b856566f4dd7681caf4d Mon Sep 17 00:00:00 2001 From: David Alejandro <15317732+davidalejandroaguilar@users.noreply.github.com> Date: Fri, 20 Sep 2024 23:27:17 +0200 Subject: [PATCH] Make modifiers table columns equal width --- Gemfile.lock | 2 +- .../components/examples/container_component.rb | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 869d621..85583ea 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/PhlexyUI/phlexy_ui.git - revision: f7bcae22c4efcb32406965d84144d4a7e0cd72d7 + revision: 0960d0452385017a96789f1f6ee51c45083efdaa branch: main specs: phlexy_ui (0.1.5) diff --git a/app/views/components/examples/container_component.rb b/app/views/components/examples/container_component.rb index b7a314c..03d7de0 100644 --- a/app/views/components/examples/container_component.rb +++ b/app/views/components/examples/container_component.rb @@ -21,15 +21,23 @@ def render_modifiers Table :zebra, :pin_rows do |table| table.header do |header| header.row do |row| - row.head { "Modifier" } - row.head { "DaisyUI class" } + row.head class: "w-1/2" do + "Modifier" + end + row.head class: "w-1/2" do + "DaisyUI class" + end end end table.body do |body| component.modifiers.each do |modifier, css_class| body.row do |row| - row.cell { ":#{modifier}" } - row.cell { css_class } + row.cell class: "w-1/2" do + ":#{modifier}" + end + row.cell class: "w-1/2" do + css_class + end end end end