lesli_view 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9514f6d60ee56ac5ceeb4acfb7cd55a806e52fc27d0eab8819aac0eaf65feca
4
- data.tar.gz: c379ab881d6997fcedc908e217a3380c130509cbbf9e303c858f6a173a8d1f0d
3
+ metadata.gz: de7eac0bd16e4eda1dbede8b87d94da52ef1a7ce347e21209439c4ed1fa0f9cd
4
+ data.tar.gz: 49c092160dc7afc53055c0714da228bb21e3c26a850d10a84692dbb75f27bb03
5
5
  SHA512:
6
- metadata.gz: a9b93ec31104ca2763be55561ad2923f11c91c0d776e1c71442be9486bda61b041a7856d36b27a0b0349e0cf27971ca6e4e8366bc8f02974a8935690f255dcbe
7
- data.tar.gz: a1dde4c94d1fe576a7ca7b0e0eb7378981ce1ecb43e85ef374326aaa8cb2cb4a96abad92197e7c1f62f780f8e4c0dfbce16b8aaaf85223b4c925ac639536afda
6
+ metadata.gz: 7c78c9d4b9af4e8f09ac6a75a87bbeffe2f67d3de395fde77d9d86d42a99797c7a8999d7737538e33063c37d380f2b002be6271c762bd357f496029dae60ca7a
7
+ data.tar.gz: 9e5e847eb795565b8a1a309a6150b6b811deff56d0f1b4c85403799c36a2563d0fd72d44d1b56e08d524ff5a06fd353b3684a0df4c5b081b7bc411a0ef2029a0
@@ -1,5 +1,5 @@
1
1
  <section class="lesli-element-header is-flex">
2
- <div class="lesli-element-header-title is-flex is-align-items-center">
2
+ <div class="lesli-element-header-title">
3
3
  <% if back %>
4
4
  <%= link_to(
5
5
  back || request.referer || root_path,
@@ -9,8 +9,9 @@
9
9
  <% end %>
10
10
  <% end %>
11
11
  <% if title.present? %>
12
- <h1 class="subtitle is-size-3"><%= title %></h1>
12
+ <h1 class="subtitle is-size-3 mb-1"><%= title %></h1>
13
13
  <% end %>
14
+ <p><%= subtitle %>&nbsp;</p>
14
15
  </div>
15
16
  <div class="lesli-element-header-items is-flex is-flex-grow-1 is-justify-content-end">
16
17
  <% if new_path %>
@@ -35,10 +35,11 @@ Building a better future, one line of code at a time.
35
35
  module LesliView
36
36
  module Components
37
37
  class Header < ViewComponent::Base
38
- attr_reader :title, :back, :new_path
38
+ attr_reader :title, :subtitle, :back, :new_path
39
39
 
40
- def initialize(title, new_path:nil, back:nil)
40
+ def initialize(title, subtitle="", new_path:nil, back:nil)
41
41
  @title = title
42
+ @subtitle = subtitle
42
43
  @back = back
43
44
  @new_path = new_path
44
45
  end
@@ -2,6 +2,6 @@
2
2
  <!-- app/components/lesli_application_container_component.html.erb -->
3
3
  <turbo-frame
4
4
  id="<%= turbo_frame_id %>"
5
- class="lesli-application-container container <%= 'is-fluid' if dashboard %> px-0">
5
+ class="lesli-application-container container <%= 'is-fluid' if dashboard %>">
6
6
  <%= content %>
7
7
  </turbo-frame>
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LesliView
4
- VERSION = "1.0.4"
5
- BUILD = "1754023334"
4
+ VERSION = "1.0.5"
5
+ BUILD = "1754919086"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-08-01 00:00:00.000000000 Z
11
+ date: 2025-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: view_component