Bug 496606

Summary: Episode description allows horizontal scrolling despite text wrapping
Product: [Applications] kasts Reporter: Oliver Geer <hi>
Component: generalAssignee: bart
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.08.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Observed Result with lines long enough to wrap

Description Oliver Geer 2024-11-23 12:47:00 UTC
Created attachment 176061 [details]
Observed Result with lines long enough to wrap

SUMMARY

I will refer to the "Description", meaning the episode details rich text description (this QML element: https://invent.kde.org/multimedia/kasts/-/blob/8555de27a8242f04ffc83ec9e8ba812328036ab5/src/qml/EntryPage.qml#L227-L265), and the "Parent", its parent element (either https://invent.kde.org/multimedia/kasts/-/blob/8555de27a8242f04ffc83ec9e8ba812328036ab5/src/qml/EntryPage.qml#L18-313 or https://invent.kde.org/multimedia/kasts/-/blob/8555de27a8242f04ffc83ec9e8ba812328036ab5/src/qml/EntryPage.qml#L74-312).

The Parent is under a common condition (see Observed Result) scrollable horizontally when this should never be the case.

STEPS TO REPRODUCE
1. Open Kasts.
2. Click the Subscriptions icon.
3. Click a podcast name.
4. Click an episode name.
5. Use the left/right arrow keys or touchpad horizontal two finger swipe to scroll the page.

OBSERVED RESULT

If the Description contains lines long enough to wrap (e.g. Episode https://op3.dev/e,pg=a9a56b87-575a-5f6f-9636-cdf7b73e6230/gnulinuxvalencia.org/audio-video/audio/34-KDE_Express.mp3 in Feed https://kdeexpress.gitlab.io/feed):
the Parent scrolls horizontally, but with no horizontal scrollbar visible, qualitatively to the length the longest line in the Description would be if it didn't wrap.

If the Description contains no wrapped lines (e.g. Episode https://op3.dev/e,pg=a9a56b87-575a-5f6f-9636-cdf7b73e6230/archive.org/download/31-kde-express/31-KDE_Express-IvanGJ.mp3 in Feed https://kdeexpress.gitlab.io/feed):
the Parent doesn't scroll horizontally.

EXPECTED RESULT

If the Description contains lines long enough to wrap (e.g. Episode https://op3.dev/e,pg=a9a56b87-575a-5f6f-9636-cdf7b73e6230/gnulinuxvalencia.org/audio-video/audio/34-KDE_Express.mp3 in Feed https://kdeexpress.gitlab.io/feed):
the Parent doesn't scroll horizontally.

If the Description contains no wrapped lines (e.g. Episode https://op3.dev/e,pg=a9a56b87-575a-5f6f-9636-cdf7b73e6230/archive.org/download/31-kde-express/31-KDE_Express-IvanGJ.mp3 in Feed https://kdeexpress.gitlab.io/feed):
the Parent doesn't scroll horizontally.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3 CPU M 370 @ 2.40GHz
Memory: 3.7 GiB of RAM
Graphics Processor: AMD CEDAR

ADDITIONAL INFORMATION
This may be a problem with Kasts or may be a more fundamental problem with Kirigami.ScrollablePage or QtQuick.TextEdit.
Comment 1 Bug Janitor Service 2025-02-16 21:09:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/kasts/-/merge_requests/252
Comment 2 bart 2025-02-17 15:38:52 UTC
Git commit e8eb1dd3bdbaa155c75ee5c12836c0d12f9eb0c8 by Bart De Vries.
Committed on 17/02/2025 at 15:33.
Pushed by bdevries into branch 'master'.

Fix width of entry page in case of long wrapped lines

M  +4    -0    src/qml/EntryPage.qml

https://invent.kde.org/multimedia/kasts/-/commit/e8eb1dd3bdbaa155c75ee5c12836c0d12f9eb0c8