Widget width not matching expected result on larger screen sizes

オープン
#14,412 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jasonvarga がすでに取り組んでいます。

2026年8月28日 から。

  • #15305 @jasonvarga による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript, php
領域
frontend

調査の方向性

Read cms/resources/js/pages/Dashboard.vue and inspect the @7xl width class identified in the issue. Reproduce with two dashboard widgets configured at width 50 and a screen at least 1554px wide; done means both widgets display at 50% width. An open linked pull request already addresses this issue.

索引モデルが issue の本文から書いたものです。

説明

ui widgets
Bug description

The widget width value at the 50% option does not match expectations when viewed at larger screen sizes. When set to 'width' => 50 in the configuration, it will instead show at 33% width rather than 50% width.

I've identified the source of the issue is defined in cms/resources/js/pages/Dashboard.vue, where @7xl:w-1/3 is set instead of @7xl:w-1/2. Manually changing this in the web inspector tools corrects the problem.

How to reproduce
  1. Create two collections named example_1 and example_2, or use two existing collections
  2. Define dashboard widgets in config/statamic/cp.php to the above collections:
'widgets' => [
    [
        'type' => 'collection',
        'collection' => 'example_1',
        'width' => 50,
    ],
    [
        'type' => 'collection',
        'collection' => 'example_2',
        'width' => 50,
    ],
],
  1. Navigate to the dashboard page
  2. Enlarge screen size to at least 1554px wide
  3. Observe error with width of widgets being shown at 33% instead of 50%
Logs

Environment
Environment
Application Name: **REDACTED**
Laravel Version: 12.55.1
PHP Version: 8.3.30
Composer Version: 2.9.5
Environment: local
Debug Mode: ENABLED
URL: **REDACTED**
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: redis
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 1
Sites: 1
Stache Watcher: Disabled
Static Caching: Disabled
Version: 6.7.3 PRO

Statamic Addons
statamic/seo-pro: 7.3.0
Installation

Fresh statamic/statamic site via CLI

Additional details

No response

主要言語
PHP
スター
4.9k
フォーク
647
平均マージ
1日 45分
マージ済み PR(30日)
221

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

statamic/cms のほかの issue

statamic/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。