Author: Theodore Brown (theodorejb)
Committer: GitHub (web-flow)
Pusher: sy-records
Date: 2025-10-17T11:19:27+08:00

Commit: 
https://github.com/php/web-php/commit/95c7f6290e7581e8d451296182a616ed04758da2
Raw diff: 
https://github.com/php/web-php/commit/95c7f6290e7581e8d451296182a616ed04758da2.diff

Fix PHP 8.4 property hooks example not being full width when wrapped (#1522)

Changed paths:
  M  releases/8.4/release.inc
  M  styles/php8.css


Diff:

diff --git a/releases/8.4/release.inc b/releases/8.4/release.inc
index 48cda1b8f1..b8d5bec2e7 100644
--- a/releases/8.4/release.inc
+++ b/releases/8.4/release.inc
@@ -101,9 +101,9 @@ PHP
                     </div>
                 </div>
                 <div class="php8-compare__arrow"></div>
-                <div class="php8-compare__block example-contents" 
style="display: table;">
+                <div class="php8-compare__block example-contents">
                     <div class="php8-compare__label 
php8-compare__label_new">PHP 8.4</div>
-                    <div class="php8-code phpcode" style="display: 
table-cell;">
+                    <div class="php8-code align-start phpcode">
                         <?php highlight_php_trimmed(
                             <<<'PHP'
 class Locale
diff --git a/styles/php8.css b/styles/php8.css
index cefd6c843a..6baf25b9d4 100644
--- a/styles/php8.css
+++ b/styles/php8.css
@@ -305,6 +305,10 @@
   margin: 0 !important;
 }
 
+.align-start {
+    align-items: start;
+}
+
 @media (max-width: 768px) {
   .php8-code {
     padding-left: 12px !important;

Reply via email to