v0.10.0.pre2
Pre-release
Pre-release
- Added hooks for resource toolbars (2688245)
hook "index.toolbar.secondary" do |toolbar|
...
end
This removes one of the primary reasons for needing to customize the resource index.html.erb
template (and one of the biggest sources of pain when upgrading Trestle versions).
New hooks include index.toolbar.primary
, index.toolbar.secondary
, new.toolbar.primary
, new.toolbar.secondary
, show.toolbar.primary
, show.toolbar.secondary
, edit.toolbar.primary
, edit.toolbar.secondary
. In each case, the toolbar builder is yielded to the hook block.
- Added stimulus controller
batch-action
for batch action triggers (014dc16) - Allow resource toolbar builder to accept custom label and attributes (78899b4)
t.save label: "Save & Publish", icon: "fas fa-share-from-square"
- Fixed compatibility with
sassc-rails
gem (introduce custom compressor to exclude bundled Trestle assets) (f10c78d) - Variety of CSS improvements, notably:
- Remove display: flex from body (can cause layout issues) (c8aba45)
- Avoid setting base font size on root HTML element (39d92dd)
- Use
dvh
units for sticky footer (c8aba45) - Animate sidebar expand/collapse (4f6644d)
- Disable layout animations when
prefers-reduced-motion
(37a8555) - Show sidebar badges as indicator dots in collapsed state (e3b7c46)
- More usage of CSS variables (5367d31, 20bc74b)
- Lay out content header using CSS grid (58b4e7f)
- Switch to
rem
units for dimensions (94456fc) - Introduce CSS classes for basic grid framework (362068b, bf2921b, 60c9d72)
- Use primary theme color as default tag color (3f887fc)
- Update dropdown menu markup for Bootstrap 5 (932152f)
- Ensure dismiss toolbar button specifies type="button" and not type="submit" (c46973a)
- Added
turbo-rails
as a dependency (8b07a7d) - Removed
turbo_stream_modal
helper (useturbo_stream.modal
instead) (315cd4e) - Drop support for Rails 5.2 (4efcc87)