Skip to content

Change widget theme custom CSS fields from TEXT to MEDIUMTEXT to avoid CSS truncation - #2408

Open
mysubcult wants to merge 1 commit into
LiveHelperChat:masterfrom
mysubcult:fix-widget-theme-css-mediumtext
Open

Change widget theme custom CSS fields from TEXT to MEDIUMTEXT to avoid CSS truncation#2408
mysubcult wants to merge 1 commit into
LiveHelperChat:masterfrom
mysubcult:fix-widget-theme-css-mediumtext

Conversation

@mysubcult

Copy link
Copy Markdown
Contributor

Summary

Modern custom widget themes (with extensive styles, embedded SVG/base64 assets, and responsive CSS rules) can easily exceed the MySQL 64 KB TEXT limit (e.g. themes with 70+ KB of CSS). When this occurs, MySQL truncates the CSS content, leading to broken widget styles.

Changes

  1. Added doc/update_db/update_357.sql migrating lh_abstract_widget_theme CSS fields (custom_status_css, custom_container_css, custom_widget_css, custom_popup_css) from TEXT to MEDIUMTEXT (supporting up to 16 MB).
  2. Updated doc/update_db/structure.json schema definitions to keep database update checks in sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant