Skip to content

fix(themes): show feed name at narrow widths when configured - #8801

Merged
Alkarex merged 1 commit into
FreshRSS:edgefrom
polybjorn:fix/topline-website-narrow-modes
May 10, 2026
Merged

Alkarex merged 1 commit into
FreshRSS:edgefrom
polybjorn:fix/topline-website-narrow-modes

Conversation

@polybjorn

Copy link
Copy Markdown
Contributor

Problem

Settings > Display has a Website dropdown with Icon only, Name only, Icon and name, and None. At viewports ≤840px, the feed name is hidden in Name only and Icon and name, leaving only the favicon (or nothing). The setting is effectively ignored in narrow view.

Cause: two CSS rules in base-theme/frss.css predate the configurable modes from #4969 and assume icon-only behavior at narrow widths. #8631 added a partial workaround that re-shows the name only when both Thumbnail and Summary are enabled (the grid layout), so the bug only surfaces with the default Thumbnail = none, Summary = off config.

Reproduction

  1. Settings > Display, set Website to Name only or Icon and name
  2. Resize the browser to ≤840px

Expected: feed name visible per the Website setting. Actual: only the favicon (or nothing) renders.

Fix

In base-theme/frss.css (and the regenerated frss.rtl.css), inside the narrow @media block:

  • Delete .flux_header .item.website span { display: none }. Hid the name span unconditionally; Icon only mode does not render the span at all, so the rule was dead there and harmful elsewhere.
  • Delete .flux .flux_header.has-thumbnail.has-summary li.website .websiteName { display: inline }. The grid-layout workaround above; redundant once the underlying rule is gone.
  • Scope .flux_header .item.website { width: 40px } to .flux_header.websiteicon. The 40px override only makes sense for Icon only. Name only and Icon and name now inherit their wide-view widths (150px and 200px). A short comment notes why the override is still needed at narrow: --frss-padding-flux-items shrinks from 0.75rem to 0.5rem in the narrow block, so without the override the icon cell would drop from 40px to 32px.

Two narrow @media rules in base-theme/frss.css predate the configurable topline_website modes from FreshRSS#4969 and force icon-only behavior regardless of the user's Website setting; FreshRSS#8631 partially papered over this for grid-layout entries. Drop the unconditional span-hide and its grid-layout exception, and scope the 40px width cap to .websiteicon (with a comment explaining why it stays at narrow).
@polybjorn
polybjorn marked this pull request as ready for review May 10, 2026 13:12
@Alkarex Alkarex added this to the 1.30.0 milestone May 10, 2026
@Alkarex Alkarex added the UI 🎨 User Interfaces label May 10, 2026
@Alkarex
Alkarex merged commit 9ff4aec into FreshRSS:edge May 10, 2026
1 check passed
@polybjorn
polybjorn deleted the fix/topline-website-narrow-modes branch May 10, 2026 14:51
polybjorn added a commit to polybjorn/FreshRSS that referenced this pull request May 11, 2026
FreshRSS#8801 dropped the unconditional 40px cap on .item.website at narrow widths so users with topline_website set to name/full would actually see the feed name on mobile. With the default 'full' mode, the column then inherited the 200px wide-width default, squashing the article title (FreshRSS#8814).

Re-introduce a cap for the name-bearing modes: max-width 30vw with width auto, so the favicon and name shrink to fit the viewport without overrunning the title cell.
polybjorn added a commit to polybjorn/FreshRSS that referenced this pull request May 11, 2026
FreshRSS#8801 dropped the unconditional 40px cap on .item.website at narrow widths so users with topline_website set to name/full would actually see the feed name on mobile. With the default 'full' mode, the column then inherited the 200px wide-width default, squashing the article title (FreshRSS#8814).

Re-introduce a cap for the name-bearing modes: max-width 30vw with width auto, so the favicon and name shrink to fit the viewport without overrunning the title cell.
polybjorn added a commit to polybjorn/FreshRSS that referenced this pull request May 11, 2026
FreshRSS#8801 dropped the unconditional 40px cap on .item.website at narrow widths so users with topline_website set to name/full would actually see the feed name on mobile. With the default 'full' mode, the column then inherited the 200px wide-width default, squashing the article title (FreshRSS#8814).

Re-introduce a cap for the name-bearing modes: max-width 30vw with width auto, so the favicon and name shrink to fit the viewport without overrunning the title cell.
Alkarex pushed a commit that referenced this pull request May 11, 2026
)

#8801 dropped the unconditional 40px cap on .item.website at narrow widths so users with topline_website set to name/full would actually see the feed name on mobile. With the default 'full' mode, the column then inherited the 200px wide-width default, squashing the article title (#8814).

Re-introduce a cap for the name-bearing modes: max-width 30vw with width auto, so the favicon and name shrink to fit the viewport without overrunning the title cell.

Co-authored-by: Bjørn A. Andersen <[email protected]>
@Alkarex Alkarex modified the milestones: 1.30.0, 1.29.1 May 14, 2026
polybjorn pushed a commit to polybjorn/FreshRSS that referenced this pull request May 15, 2026
Alkarex pushed a commit that referenced this pull request May 15, 2026
Reverts #8801 (keeping its incidental blank-line cleanups) and #8815, restoring icon-only feed column on mobile (#8814).

I filed the original PR thinking the icon-only behavior was an inconsistency bug versus the configurable `topline_website` setting, not realizing it was a deliberate mobile choice. The `clamp()` cap helped, but the column still takes space the title could use, and on phones icon-only is the better tradeoff.

A distinct narrow-viewport setting for `topline_website` was raised as a future improvement.

* Revert "fix(themes): cap website column at narrow when feed name is shown (#8815)"

This reverts commit af6a500.

* Revert "fix(themes): show feed name at narrow widths when configured (#8801)"

This reverts commit 9ff4aec.

---------

Co-authored-by: FreshRSS Pi <freshrss-pi@localhost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI 🎨 User Interfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants