From 5d5500b9cfe7b94acb86a433b15e4cf0fb671bcb Mon Sep 17 00:00:00 2001 From: Kevin Batdorf Date: Tue, 30 Aug 2022 09:39:43 -0400 Subject: [PATCH] Add bs support --- code-block-pro.php | 2 +- readme.txt | 5 ++++- src/front/style.css | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/code-block-pro.php b/code-block-pro.php index ebc750f..da228a8 100644 --- a/code-block-pro.php +++ b/code-block-pro.php @@ -4,7 +4,7 @@ * Description: Code highlighting powered by the VS Code engine * Requires at least: 6.0 * Requires PHP: 7.0 - * Version: 1.2.5 + * Version: 1.2.6 * Author: Kevin Batdorf * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/readme.txt b/readme.txt index 84f2032..b1857f5 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: kbat82 Tags: block, code, syntax, highlighting, snippet Tested up to: 6.0 -Stable tag: 1.2.5 +Stable tag: 1.2.6 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -220,6 +220,9 @@ add_action('wp_enqueue_scripts', function() { == Changelog == += 1.2.6 - 2022-08-30 = +- Fix: Force disable wrapping and overflow for bootstrap based themes. + = 1.2.5 - 2022-08-30 = - Fix: Force disable wrapping and overflow for some themes. diff --git a/src/front/style.css b/src/front/style.css index 014ef18..a32780c 100644 --- a/src/front/style.css +++ b/src/front/style.css @@ -8,7 +8,8 @@ @apply overflow-auto p-6 text-inherit m-0 whitespace-pre; } .wp-block-kevinbatdorf-code-block-pro pre code { - @apply m-0 p-0 bg-transparent text-inherit text-left; + overflow-wrap:normal !important; + @apply m-0 p-0 bg-transparent text-inherit text-left whitespace-pre; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }