From cf5f0a9f3f05ae6a467a745d88bf256ca7dda00b Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Tue, 3 Jun 2025 11:39:07 +0200 Subject: [PATCH] Set ratio for videos via style And update lexical to allow style attributes --- Gemfile.lock | 2 +- app/views/active_storage/blobs/web/_representation.html.erb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 701715d6d..0edc44c2e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/basecamp/actiontext-lexical - revision: 7f327ddd60f4902ac60bb426495e85b31b6f0ad2 + revision: 0aa2564ed17775662dcff8d83a02d0c0be294628 specs: actiontext-lexical (0.1.0) rails (>= 8.0.2) diff --git a/app/views/active_storage/blobs/web/_representation.html.erb b/app/views/active_storage/blobs/web/_representation.html.erb index 2931e2099..7b1106367 100644 --- a/app/views/active_storage/blobs/web/_representation.html.erb +++ b/app/views/active_storage/blobs/web/_representation.html.erb @@ -7,6 +7,7 @@ src: rails_blob_path(blob), controls: true, preload: :none, + style: "aspect-ratio: #{width} / #{height};", width: width, height: height %> <% elsif blob.audio? %>