Skip to content

Render attachments in examples tables. Closes #1173#1619

Merged
aslakhellesoy merged 4 commits intomainfrom
render-attachments-in-examples-tables
Jun 17, 2021
Merged

Render attachments in examples tables. Closes #1173#1619
aslakhellesoy merged 4 commits intomainfrom
render-attachments-in-examples-tables

Conversation

@aslakhellesoy
Copy link
Contributor

This is a fix for #1173.

Unexpanded:

Screenshot 2021-06-17 at 16 41 07

Expanded:

Screenshot 2021-06-17 at 16 41 37

Copy link
Contributor

@davidjgoss davidjgoss left a comment

Choose a reason for hiding this comment

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

Looks good!

One query around image widths. At the moment our only constraint is:

max-width: 100%

So if you have a big image (as in this example, but also common with browser screenshots) it will just go as wide as your screen and dominate the page.

Should we have a reasonable upper width limit e.g. 1200px? If so, should that be different within the examples table?

@aslakhellesoy
Copy link
Contributor Author

Is it a problem that the image takes the full width? It's collapsed by default.

BTW, my change in the CCK seems to have triggered a test failure in json-formatter - I need to investigate that.

@davidjgoss
Copy link
Contributor

Is it a problem that the image takes the full width? It's collapsed by default.

Yeah I think that's a fair point, you're opting into it. Sold!

@aslakhellesoy aslakhellesoy merged commit e18b845 into main Jun 17, 2021
@aslakhellesoy aslakhellesoy deleted the render-attachments-in-examples-tables branch June 17, 2021 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants