Skip to content

Commit

Permalink
add padding to a table
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzak committed Nov 8, 2024
1 parent aed8348 commit 2cc8e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nazar/horizontal_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def summary_row(value)
end

def options
{ border: { separator: :each_row }, multiline: true, resize: resize }.tap do |hash|
{ border: { separator: :each_row }, multiline: true, resize: resize, padding: [0, 1, 0, 1] }.tap do |hash|
hash[:width] = Nazar.config.table.max_width if Nazar.config.table.max_width
end
end
Expand Down

0 comments on commit 2cc8e3d

Please sign in to comment.