Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/pages/generate/components/filterChip/FilterChip.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { colorVars } from '@styles/tokens/color.css';
export const filterChip = recipe({
base: {
height: '3.6rem',
padding: '0rem 1.4rem',
padding: '0 1.2rem',
textAlign: 'center',
borderRadius: '999px',
...fontStyle('body_r_14'),
...fontStyle('body_r_13'),
backgroundColor: colorVars.color.gray000,
color: colorVars.color.gray500,
border: `1px solid ${colorVars.color.gray300}`,
transition:
Expand All @@ -18,10 +19,10 @@ export const filterChip = recipe({
variants: {
selected: {
true: {
...fontStyle('body_m_14'),
backgroundColor: colorVars.color.primary_light2,
color: colorVars.color.primary,
border: `1px solid ${colorVars.color.primary}`,
...fontStyle('body_m_13'),
backgroundColor: colorVars.color.gray999,
color: colorVars.color.gray000,
borderColor: 'transparent',
},
false: {},
},
Expand Down
9 changes: 6 additions & 3 deletions src/pages/generate/pages/result/ResultPage.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@ import { recipe } from '@vanilla-extract/recipes';
import { fontStyle } from '@/shared/styles/fontStyle';
import { animationTokens } from '@/shared/styles/tokens/animation.css';

import { layoutVars } from '@styles/global.css';
import { colorVars } from '@styles/tokens/color.css';

export const wrapper = style({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
minHeight: '66.7rem',
width: '100%',
height: `calc(100dvh - ${layoutVars.titleNavBarHeight})`, // TitleNavBar height
overflow: 'hidden',
});
Comment on lines 10 to 16

Choose a reason for hiding this comment

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

P2 Badge Allow curation list to scroll within viewport

Setting the result page wrapper to a fixed 100dvh height with overflow: hidden means the page itself no longer scrolls. The new inline curation section can exceed the viewport on smaller screens, but resultSection doesn’t take the wrapper height, so the curation list isn’t constrained and gets clipped instead of scrollable (even though the curation content defines overflowY: auto). Users won’t be able to reach lower cards. Consider letting the wrapper scroll, or make resultSection flex to the wrapper height so the curation content can scroll inside.

Useful? React with 👍 / 👎.


export const resultSection = style({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
width: '100%',
height: '100%',
minHeight: 0,
overflow: 'hidden',
});

export const imgArea = recipe({
Expand Down
Loading