Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make preview breakpoints configurable #2299

Merged
merged 1 commit into from
Aug 5, 2023
Merged

Conversation

florrie-90
Copy link
Collaborator

@florrie-90 florrie-90 commented Jun 23, 2023

Adds functionality to pass breakpoints from config/twill.php to the Previewer.vue component. The breakpoints will be used as the available sizes for the preview modal.

'preview' => [
        'breakpoints' => [
            [
                'size' => 1280,
                'name' => 'preview-desktop',
            ],
            [
                'size' => 1024,
                'name' => 'preview-tablet-h',
            ],
            [
                'size' => 768,
                'name' => 'preview-tablet-v',
            ],
            [
                'size' => 320,
                'name' => 'preview-mobile',
            ]
        ]
    ],

Fixes #1601

@florrie-90 florrie-90 requested a review from ifox June 23, 2023 21:03
@ifox ifox merged commit 88ec426 into 3.x Aug 5, 2023
@ifox ifox deleted the feature/breakpoints-config branch August 5, 2023 22:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[3.x]: Make breakpoints configurable
2 participants