Skip to content

styles: improve responsivness of cube#7881

Merged
evenstensberg merged 5 commits intowebpack:mainfrom
TusharThakur04:styles/cube-responsivness
Mar 1, 2026
Merged

styles: improve responsivness of cube#7881
evenstensberg merged 5 commits intowebpack:mainfrom
TusharThakur04:styles/cube-responsivness

Conversation

@TusharThakur04
Copy link
Contributor

Summary
Even after the merge #7878 , there was still some flaws in the responsiveness of the cube which has been fixed now.

What kind of change does this PR introduce?
styles

Did you add tests for your changes?
no

Does this PR introduce a breaking change?
no

If relevant, what needs to be documented once your changes are merged or what have you already documented?


before:
Screencast from 2026-02-25 22-18-24.webm


after:
Screencast from 2026-02-25 22-20-05.webm

@vercel
Copy link

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Feb 28, 2026 0:48am

Request Review

@alexander-akait
Copy link
Member

Try 820x300, part of logo and text under background of the next section

@TusharThakur04
Copy link
Contributor Author

Screenshot from 2026-02-25 22-41-48

@alexander-akait
Copy link
Member

Screenshot from 2026-02-25 20-15-09

@TusharThakur04
Copy link
Contributor Author

i have corrected the next section overlapping but why is proselint failing, i didnt change anything else

@TusharThakur04 TusharThakur04 force-pushed the styles/cube-responsivness branch from 9826512 to a733a28 Compare February 25, 2026 18:02
@TusharThakur04 TusharThakur04 changed the title sytles: improve responsivness of cube styles: improve responsivness of cube Feb 25, 2026
@alexander-akait
Copy link
Member

The same problem on 1510, also default height is very big and a lot of extra spaces between text and image, please try to do it using hands, not AI, because AI can't see the result

ovflowd
ovflowd previously approved these changes Feb 25, 2026
Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

SGTM

@alexander-akait
Copy link
Member

I found that color and box-shadow are losing if we remove it

@TusharThakur04
Copy link
Contributor Author

I found that color and box-shadow are losing if we remove it

removing what?

@alexander-akait
Copy link
Member

@TusharThakur04 oh, sorry, wrong PR, no let's make height more dynamic to avoid extra spaces and more high on small devices to avoid problem with background

@ShaikArsalan347
Copy link
Contributor

ShaikArsalan347 commented Feb 27, 2026

@TusharThakur04

image add some space in the bottom inside the section like this image

@alexander-akait
Copy link
Member

@evenstensberg take a look too

@ShaikArsalan347
Copy link
Contributor

@TusharThakur04 reduce some min-height

height: calc(100vh - 56px);
min-height: 320px;
max-height: 720px;
// height: calc(100vh - 56px);
Copy link
Member

Choose a reason for hiding this comment

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

remove if not used.

max-height: 720px;
// height: calc(100vh - 56px);
min-height: 650px;
height: clamp(500px, calc(100vh - 56px), 700px);
Copy link
Member

Choose a reason for hiding this comment

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

whats your values based on? A comment would be nice here.

position: relative;
grid-row: 2 / 3;
}
min-height: 480px;
Copy link
Member

Choose a reason for hiding this comment

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

I'll review this later, but instead of hard coded pixels on smaller devices we should use relative to screen size. (rem, em, etc)

@TusharThakur04
Copy link
Contributor Author

@evenstensberg @ovflowd please review, i have experimented with diff values and have made sure there is no overlapping in any screen size.

Copy link
Member

@evenstensberg evenstensberg left a comment

Choose a reason for hiding this comment

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

lgtm, I'd prefer a comment on how you calculated the height, but not blocking. thank you!

@evenstensberg evenstensberg merged commit 1496ffc into webpack:main Mar 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants