Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Sep 9, 2025

Summary

  • allow selecting number of columns for the lookbook block
  • wrap lookbook markup with responsive container
  • add CSS to display two or three lookbooks side by side on desktop

Testing

  • php -l models/EverblockPrettyBlocks.php

https://chatgpt.com/codex/tasks/task_e_68c05b4d9e64832296f104076554fba8

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines +4389 to +4406
'columns' => [
'type' => 'select',
'label' => $module->l('Columns on desktop'),
'default' => '1',
'options' => [
[
'label' => '1',
'value' => '1',
],
[
'label' => '2',
'value' => '2',
],
[
'label' => '3',
'value' => '3',
],
],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Populate select with choices, not options array

The new lookbook configuration field declares a select input but fills it using an options array of label/value pairs. Every other select in this class uses the choices associative array (e.g. the heading level select earlier in the file), which is what the PrettyBlocks builder expects when rendering forms. With options the control will render empty and the column count can never be changed, so the responsive layout feature introduced here can’t actually be configured.

Useful? React with 👍 / 👎.

@CySSoO CySSoO merged commit 33182ff into master Sep 10, 2025
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants