Skip to content

fix(studio-header): prevent course title truncation caused by oversized logo#65

Merged
Waleed-Mujahid merged 1 commit into
ulmo/indigofrom
fix/EDLYPRODUCT-8294-studio-header-title
Jun 15, 2026
Merged

fix(studio-header): prevent course title truncation caused by oversized logo#65
Waleed-Mujahid merged 1 commit into
ulmo/indigofrom
fix/EDLYPRODUCT-8294-studio-header-title

Conversation

@Waleed-Mujahid

@Waleed-Mujahid Waleed-Mujahid commented Jun 12, 2026

Copy link
Copy Markdown
Member

Problem

PR #53 increased the studio header logo height from 1.75rem to 3rem for adaptive logo sizing. The upstream frontend-component-header wraps the logo and course title lockup in a flex row where the logo side uses Bootstrap utility .w-25 (25% width). At 3rem the logo overflows its 25% allocation, squeezing the course org/number/title to a few pixels — everything renders as ....

Fix

  1. .studio-header .w-25 { width: 40% !important; } — widens the wrapper from 25% to 40% scoped to studio header only. !important required because Bootstrap ships .w-25 { width: 25% !important }.
  2. .logo { max-width: 10rem; object-fit: contain } — prevents wide SVG logos from expanding horizontally at the increased height. Uses rem to scale proportionally with height: 3rem.

Before

Screenshot 2026-06-12 at 3 22 21 PM

After

Screenshot 2026-06-12 at 3 19 51 PM

@Waleed-Mujahid Waleed-Mujahid force-pushed the fix/EDLYPRODUCT-8294-studio-header-title branch from 408cb4b to 5fe1797 Compare June 12, 2026 09:38
@Waleed-Mujahid Waleed-Mujahid self-assigned this Jun 12, 2026
@Waleed-Mujahid Waleed-Mujahid marked this pull request as ready for review June 12, 2026 10:24

@Abdul-Muqadim-Arbisoft Abdul-Muqadim-Arbisoft left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

max-width is in px while the existing height is in rem, can we put max-width as rem as well for consistency?

…ed logo

PR #53 increased the studio header logo height from the upstream default
of 1.75rem to 3rem to support adaptive logo sizing across different
dimensions. The upstream frontend-component-header wraps the logo and
course title lockup in a flex container where the logo area uses the
Bootstrap utility class w-25. At 1.75rem the logo fits comfortably
within that 25% allocation; at 3rem it does not, causing the course
org/number/title to be squeezed to a few pixels and rendered as an
ellipsis.

Widen the w-25 wrapper to 40% scoped to .studio-header to give the
taller logo room without affecting Bootstrap utility usage elsewhere.
Add max-width and object-fit on .logo as a safeguard against wide
SVG logos expanding horizontally at the increased height.
@Waleed-Mujahid Waleed-Mujahid force-pushed the fix/EDLYPRODUCT-8294-studio-header-title branch from 5fe1797 to 5a13e61 Compare June 12, 2026 11:15
@Waleed-Mujahid

Copy link
Copy Markdown
Member Author

max-width is in px while the existing height is in rem, can we put max-width as rem as well for consistency?

Updated and tested. Kindly re-review

@Waleed-Mujahid Waleed-Mujahid merged commit 436c3d8 into ulmo/indigo Jun 15, 2026
1 check passed
@Waleed-Mujahid Waleed-Mujahid deleted the fix/EDLYPRODUCT-8294-studio-header-title branch June 15, 2026 05:51
arbirali pushed a commit that referenced this pull request Jul 2, 2026
…r-title

fix(studio-header): prevent course title truncation caused by oversized logo
arbirali pushed a commit that referenced this pull request Jul 2, 2026
…r-title

fix(studio-header): prevent course title truncation caused by oversized logo
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.

3 participants