From 7398f97f2420c541115ecb0765ff3cd66d6f4244 Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Fri, 15 Aug 2025 17:12:33 -0700 Subject: [PATCH] Fix notification button overflow on tablets and bump version to 2.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix notification button text overflow on tablet devices - Add tablet-specific media queries for button sizing and layout - Shorten button text from "Enable Notifications" to "Enable Alerts" - Add responsive button constraints with min/max width and text overflow handling - Stack queue action buttons vertically on tablets for better fit - Bump plugin version from 2.1.0 to 2.2.0 to include all recent enhancements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- assets/css/browser-phone-frontend.css | 31 +++++++++++++++++++++++++-- assets/js/browser-phone-frontend.js | 2 +- twilio-wp-plugin.php | 4 ++-- 3 files changed, 32 insertions(+), 5 deletions(-) diff --git a/assets/css/browser-phone-frontend.css b/assets/css/browser-phone-frontend.css index 01e6a91..5c0f435 100644 --- a/assets/css/browser-phone-frontend.css +++ b/assets/css/browser-phone-frontend.css @@ -265,12 +265,20 @@ background: #17a2b8; color: white; border: none; - padding: 10px 20px; + padding: 10px 15px; border-radius: 6px; cursor: pointer; - font-size: 14px; + font-size: 13px; font-weight: 500; transition: all 0.2s ease; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + min-width: 120px; + max-width: 200px; + display: inline-block; + text-align: center; + line-height: 1.4; } .twp-btn-info:hover { @@ -702,6 +710,25 @@ margin-bottom: 16px; } +/* Tablet optimizations */ +@media (max-width: 768px) and (min-width: 481px) { + .twp-btn-info { + font-size: 12px; + padding: 8px 12px; + min-width: 140px; + max-width: 180px; + } + + .global-queue-actions { + flex-direction: column; + gap: 10px; + } + + .global-queue-actions .twp-btn { + min-width: 150px; + } +} + /* Responsive Design */ @media (max-width: 480px) { .twp-browser-phone-container { diff --git a/assets/js/browser-phone-frontend.js b/assets/js/browser-phone-frontend.js index d6ab8e3..e05366e 100644 --- a/assets/js/browser-phone-frontend.js +++ b/assets/js/browser-phone-frontend.js @@ -1193,7 +1193,7 @@ const $notificationBtn = $('