avo-lexxy_field 0.1.3 → 0.1.4

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: 718e45f67cb4fce03b179a5af27188bb6a24ed85f7044baa3197a3dc992c0a87
4
- data.tar.gz: '09c91fddc0459f0eee350e08cd55dbe295bcd3ea5dfb211828ccd64939dd75ef'
3
+ metadata.gz: b52b79c6fe3a02e1a97d8a8deef64ae1380a9ba9c4fccd11791248d3d7dce049
4
+ data.tar.gz: 3c6863cff2c8e511e4d21c5d52f5702746eb2d789f3d9f881a0ce871450d92f2
5
5
  SHA512:
6
- metadata.gz: 1126428fd5fe1384e1d3d347a911b381d54db6eaeb115d2a8c966610766aecdb1c0c11502752eb76ac0c19425a65e095d9d9c9db61b80feff018cb893bf5ec25
7
- data.tar.gz: b838ba4e6e43e81a18d4e3811b2335b2189e7d272d00da264f60617f9b1c3ceb65b487824eff190cd8c2abe888eca542ed208357c20cde8fbfe884f919033c0e
6
+ metadata.gz: 25b75c629f465ac63551c0d7711956c3333321b8ad919e09bf2048e5a462673ce9a212f3ba87050d46f4b0adf9c2669e0ec00b8e6db4205c7d1d81b42dd1b7fe
7
+ data.tar.gz: 277ebf2944e09cde6a9d6ed4caba8fa614896721830e7d5018ac4ddfb154b93b346cc8c15d9926959d365d555e5abfac47b9f6008810db4b6367b55d658de561
data/README.md CHANGED
@@ -33,6 +33,7 @@ field :body, as: :lexxy
33
33
  | Option | Default | Description |
34
34
  | ------ | ------- | ----------- |
35
35
  | `always_show` | `false` | Show the full content on the show view instead of the truncated preview. |
36
+ | `stacked` | `true` | Render the label above the editor so it spans the full row. Pass `false` for the side-by-side layout the other fields use. |
36
37
  | `attachments_disabled` | `false` for Action Text attributes, `true` otherwise | Disable file attachments. Lexxy uploads through Active Storage direct uploads and relies on Action Text to attach the blobs, so plain columns have attachments disabled by default to avoid orphaned blobs. |
37
38
 
38
39
  ### Editor configuration
@@ -24,6 +24,11 @@ module Avo
24
24
 
25
25
  hide_on :index
26
26
 
27
+ # A rich text editor needs the whole row. `full_width` on the wrapper
28
+ # only widens it inside the side-by-side content column, so stack it
29
+ # too — `stacked: false` still opts back out.
30
+ @stacked = args.fetch(:stacked, true)
31
+
27
32
  @always_show = args[:always_show] || false
28
33
  @attachments_disabled = args[:attachments_disabled]
29
34
  @editor_options = args.slice(*EDITOR_OPTIONS)
@@ -1,5 +1,5 @@
1
1
  module Avo
2
2
  module LexxyField
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo-lexxy_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin