Skip to content

Update the portrait immersive layout to match designs - #17020

Open
joshuaguardian wants to merge 2 commits into
mainfrom
fix/portrait-view
Open

joshuaguardian wants to merge 2 commits into
mainfrom
fix/portrait-view

Conversation

@joshuaguardian

Copy link
Copy Markdown
Contributor

What does this change?

Update the portrait immersive layout to match designs

Why?

How has this change been tested?

Storybook and manually

Screenshots

Screenshot 2026-10-23 at 16 45 05 Screenshot 2026-10-23 at 16 45 27 Screenshot 2026-10-23 at 16 45 42

@joshuaguardian joshuaguardian self-assigned this Oct 23, 2026
@joshuaguardian joshuaguardian added Bug run_chromatic Runs chromatic when label is applied labels Oct 23, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Oct 23, 2026
@joshuaguardian joshuaguardian added run_chromatic Runs chromatic when label is applied maintenance Departmental tracking: maintenance work, not a fix or a feature labels Oct 23, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Oct 23, 2026
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

@frederickobrien frederickobrien added this to the Interactives milestone Oct 23, 2026

@frederickobrien frederickobrien left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me, though would value @JamieB-gu's two cents on the changes made to grid.ts as that powers a lot of layout stuff these days

@joshuaguardian

joshuaguardian commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Looks good to me, though would value @JamieB-gu's two cents on the changes made to grid.ts as that powers a lot of layout stuff these days

ah I was going to remove that actually as it just fixed this horizontal scrolling in storybook, I need to do some more testing...

@joshuaguardian

joshuaguardian commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Showing the horizontal scrollbar without the grid.ts changes

Large width 965px
Screenshot 2026-10-26 at 10 33 03
Screenshot 2026-10-26 at 10 33 25

Medium width 725px
Screenshot 2026-10-26 at 10 33 44
Screenshot 2026-10-26 at 10 34 01

@joshuaguardian

joshuaguardian commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

with the grid.ts changes:

larger size 965px
Screenshot 2026-10-26 at 10 41 57
Screenshot 2026-10-26 at 10 42 11

Medium size 725px
Screenshot 2026-10-26 at 10 40 58
Screenshot 2026-10-26 at 10 41 10

@joshuaguardian
joshuaguardian requested a review from a team as a code owner October 26, 2026 11:27
@joshuaguardian joshuaguardian added the run_chromatic Runs chromatic when label is applied label Oct 26, 2026
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🚀 Image pushed to AWS ECR

Image digest: sha256:6ec0b626f3de06f999cb00c97a0bf3b665e2f364366bead3544adcd114278768

🐛 Run the image locally

The following can be used to run the image locally:

# Refer to image using the immutable digest. Find alternatives below.
IMAGE_IDENTIFIER="@sha256:6ec0b626f3de06f999cb00c97a0bf3b665e2f364366bead3544adcd114278768"

# Refer to image using branch tag
# IMAGE_IDENTIFIER=":branch-fix-portrait-view"

# Refer to image using build tag
# IMAGE_IDENTIFIER=":build-33152"

# Set environment variables for the AWS CLI
AWS_PROFILE="<A_PROFILE_FROM_JANUS>"
AWS_DEFAULT_REGION="eu-west-1"

IMAGE_ACCOUNT_ID=$(aws ssm get-parameter --name /organisation/accounts/artifacts --query "Parameter.Value" --output text)
REGISTRY="${IMAGE_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com"
IMAGE="${REGISTRY}/guardian/dotcom-rendering/dotcom-rendering${IMAGE_IDENTIFIER}"

# Login to AWS ECR https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html
aws ecr get-login-password | docker login --username AWS --password-stdin $REGISTRY

# Pull the image
docker pull $IMAGE

# Run the image. You'll likely need to set additional flags. See https://docs.docker.com/reference/cli/docker/container/run.
docker run $IMAGE

From guardian/actions-ecr.

@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Oct 26, 2026
@Jakeii Jakeii modified the milestones: Interactives, Requests Oct 26, 2026
@joshuaguardian
joshuaguardian force-pushed the fix/portrait-view branch 2 times, most recently from e8e5012 to 9d63114 Compare October 26, 2026 16:45
@frederickobrien

Copy link
Copy Markdown
Contributor

If I understand right @joshuaguardian does the @guardian/commercial-dev approved max-width: 100%; for ads make the changes to grid.ts unnecessary now?

@joshuaguardian

Copy link
Copy Markdown
Contributor Author

No the grid changes are still necessary - essentially I'm saying the gap between columns can be smaller when there isn't as much room on the screen - we see horizontal scrolling at various breakpoint sizes, this removes that. The ad slot change is also part of removing the horizontal scroll at smaller screen sizes

@frederickobrien

Copy link
Copy Markdown
Contributor

No the grid changes are still necessary - essentially I'm saying the gap between columns can be smaller when there isn't as much room on the screen - we see horizontal scrolling at various breakpoint sizes, this removes that. The ad slot change is also part of removing the horizontal scroll at smaller screen sizes

Roger that - good stuff!

@joshuaguardian joshuaguardian added the run_chromatic Runs chromatic when label is applied label Oct 27, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Oct 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants