Widget width not matching expected result on larger screen sizes
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript, php
- Bereich
- frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Create two collections named
example_1andexample_2, or use two existing collections - Define dashboard widgets in
config/statamic/cp.phpto the above collections:
'widgets' => [
[
'type' => 'collection',
'collection' => 'example_1',
'width' => 50,
],
[
'type' => 'collection',
'collection' => 'example_2',
'width' => 50,
],
],
- Navigate to the dashboard page
- Enlarge screen size to at least 1554px wide
- 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
- Vorherrschende Sprache
- PHP
- Sterne
- 4.9k
- Forks
- 647
- Ø Merge
- 1 T. 45 Min.
- Gemergte PRs (30 T.)
- 221
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus statamic/cms
-
forms ui
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
antlers
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
Nav: link to the site root with an anchor (/#section) gets is_parent on every pageEvtl. vergeben @duncanmcclean hat das heute übernommen. Offennavigations
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
-
Multiple Choice and Checkboxes no longer offer "Inline", but the default views still use itEvtl. vergeben @duncanmcclean hat das heute übernommen. Offenforms
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
sync-en
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
Selection on a line without a docblock tag drops trailing characters (data provider attribute)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
vimeo/psalm#15150 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
taskforcesh/bullmq#5238 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itEvtl. vergeben @bfs2021 hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Automattic/jetpack#55517 ·
Maintainer antworten meist innerhalb von 1 Tag