Skip to content

Commit

Permalink
Make modifiers table columns equal width
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalejandroaguilar committed Sep 20, 2024
1 parent 88570ee commit 68973b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
16 changes: 12 additions & 4 deletions app/views/components/examples/container_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68973b0

Please sign in to comment.