Widget width not matching expected result on larger screen sizes
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- javascript, php
- Domínio
- frontend
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- PHP
- Estrelas
- 4.9k
- Forks
- 647
- Merge médio
- 1d 45min
- PRs com merge (30d)
- 221
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de statamic/cms
-
forms ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
accessibility
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
antlers
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia
-
Nav: link to the site root with an anchor (/#section) gets is_parent on every pageTalvez já em andamento @duncanmcclean assumiu há 1 dia. Abertanavigations
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
-
Multiple Choice and Checkboxes no longer offer "Inline", but the default views still use itTalvez já em andamento @duncanmcclean assumiu há 1 dia. Abertaforms
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
Todas as issues de statamic/cms
Issues semelhantes
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
documentation good first issue help wanted up-for-grabs
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
AnikethTS/RunnerDeck#307 ·
Mantenedores costumam responder em até 1 dia
-
sync-en
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
sync-en
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
Mantenedores costumam responder em até 1 dia
-
Перевод устарел
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia