See const sharedPaddingStyles line 157 in Panel.styles.ts
Using PanelType: smallFixedFar it is a fixed width of 340px.
As the screen size changes the padding changes from 32px to 40px.
It does not seem to make sense to adjust the padding as screen width changes for a fixed width panel?
Maintain padding while panel is fixed width.
Are you willing to submit a PR to fix? I am not clear if there is some other reason for the change?
Requested priority: Normal
Products/sites affected: SPFx, Panels
@paylord thanks for filing this issue!
@kkjeer @micahgodbolt @Jahnp what do you think about this? Seems like something reasonable but I would like to know what was the original reasoning for this before making any changes.
@khmakoto the main question is if we are to spec with our designs or not. If we are to spec, then it's a design question if they want to make that change. If we aren't to spec, we want to align. Ping me if you need the link to figma.
@micahgodbolt if you could share those figma files with me it would be great. Thanks!
@micahgodbolt I've checked the figma files and the current implementation seems to be to spec with our designs. Do you know what's the process moving forward in terms of engaging with design to ask this question?
I usually would pull @betrue-final-final in for these questions. What was the logic in changing the internal padding of a fixed width panel at different breakpoints. I'm guessing this causes an unnecessary content reflow.
Actually it鈥檚 Christopher Wymer. I鈥檒l contact him elsewhere as I don鈥檛 know his tag here.
It should not change size. Make it match the current toolkit, which I believe is 16px.
:tada:This issue was addressed in #9825, which has now been successfully released as [email protected].:tada:
Handy links:
Awesome - thanks all :)