Commit Graph

1118 Commits

Author SHA1 Message Date
Bhushan Shah e3dfd27b9d fix appdata for kasts 2022-09-27 21:56:15 +05:30
Bhushan Shah 30de73132a GIT_SILENT: bump version to 22.09 2022-09-27 20:24:02 +05:30
l10n daemon script 3ab9786829 GIT_SILENT Sync po/docbooks with svn 2022-09-26 01:57:41 +00:00
l10n daemon script 63094270b5 GIT_SILENT Sync po/docbooks with svn 2022-09-21 01:53:06 +00:00
l10n daemon script 9ab1da93c3 GIT_SILENT Sync po/docbooks with svn 2022-09-20 01:55:01 +00:00
Ahmad Samir de42473d4e Use KDE_INSTALL_TARGETS_DEFAULT_ARGS
The KF_* variant is for KF repos

GIT_SILENT
2022-09-17 00:50:42 +02:00
Bart De Vries 7a052bfa23 Add appdata entry for plasma mobile gear 22.09 2022-09-14 20:09:02 +02:00
l10n daemon script 92a84315bb GIT_SILENT Sync po/docbooks with svn 2022-09-12 01:48:46 +00:00
l10n daemon script 1c2204386f GIT_SILENT Sync po/docbooks with svn 2022-09-11 01:48:53 +00:00
l10n daemon script 38252e8897 GIT_SILENT Sync po/docbooks with svn 2022-09-10 01:49:22 +00:00
Bart De Vries d6f60e037e Add missing icon to CMakeLists.txt 2022-09-09 10:34:58 +02:00
l10n daemon script 33a35ed5dc GIT_SILENT Sync po/docbooks with svn 2022-09-09 01:53:40 +00:00
l10n daemon script f5174fb194 GIT_SILENT Sync po/docbooks with svn 2022-09-08 01:55:52 +00:00
Devin Lin 3a6446dea5 Move page actions to bar, and consolidate podcast list and info pages 2022-09-07 19:03:07 +00:00
Devin Lin 9860c8b9e5 Only show single page at any time, and pop pages that aren't visible 2022-09-07 20:44:40 +02:00
Bart De Vries fdeb4c501a Set smaller default window size and save geometry on exit 2022-09-07 20:35:42 +02:00
Bart De Vries 5405a9d3d8 Fix for pages overlapping scrollbars in desktop view 2022-09-07 20:33:54 +02:00
l10n daemon script 63257870e7 GIT_SILENT Sync po/docbooks with svn 2022-09-07 01:53:15 +00:00
Bart De Vries cbd57a6ef8 Fix pages overlapping miniplayer in mobile view with qqc2-breeze-style 2022-09-06 21:48:19 +02:00
Jack Hill 46e7a718f8 Fix small typos in readme 2022-08-31 15:10:31 +00:00
l10n daemon script 0cda1d8b18 GIT_SILENT Sync po/docbooks with svn 2022-08-28 01:49:41 +00:00
l10n daemon script c45cc57633 GIT_SILENT Sync po/docbooks with svn 2022-08-21 01:55:37 +00:00
l10n daemon script e09f05a0e3 GIT_SILENT Sync po/docbooks with svn 2022-08-17 01:47:28 +00:00
Bart De Vries 64afd7b544 Remove collapse button from globaldrawer 2022-08-16 20:58:37 +02:00
l10n daemon script b6f735d146 GIT_SILENT Sync po/docbooks with svn 2022-08-14 01:51:38 +00:00
Bart De Vries 9b97613898 Fix fallback when no image is available in id3 tag 2022-08-09 10:58:16 +02:00
Jose Flores 58032dd560 Doesn't add width to an html img without a width defined
This attempts to fix the issue described here: https://invent.kde.org/plasma-mobile/kasts/-/issues/20

There seemed to be a loop that occurs when setting an img width which causes the view to re-render which causes the window to grow which goes back to setting an img width causing an loop that keeps growing the img width and eventually crashing.

There are a few ways to fix this but I believe not setting a width on an img without a width both fixes it and behaves as expected (see context section). I'm not sure if this is a solution Kasts wants to go with but at the very least it adds more details to the issue. 

## Reproducing
The gist of that issue is that a crash occurs when you visit https://feed.zugfunk-podcast.de/podcastrss.xml, episode 53 and this is reproducible. 

I was able to get to the bottom of why that particular podcast episode crashes and can be reproduced with the following content

```html
<table style=\"width:30rem;\"><tbody><tr><td style=\"width:14rem;\">Some Text On Left </td><td><img src=\"https://invent.kde.org/plasma-mobile/kasts/-/raw/master/icons/128-apps-kasts.png\"></td></tr></tbody></table>
```

*(can repro by setting this string as a QStringLiteral in Entry.cpp, line 64 when the content is first set and then clicking on any episode)

## Context
The problem seems to be with `<img`s that don't have a width set. In those cases the code tries to set the image to the width of the component. The problem with this seems to be that this assumes that these images are on their own horizontal line and that they should take the whole width. So to repro (see content I used to repro above as an example):
* put an image tag next to some element that takes some width (like a table where there's a left column with some text and a right column in the right)
* img tag without a width

What ends up happening is that the `img width` gets updated to the size of the component width but because there's another element to the left of it, it will mean that the resulting view is bigger than the component width which causes `onWidthChanged`(`EntryPage.qml::88`) to be triggered and the `adjustedContent` function to be called again where this whole process happens again (img width is updated to component width -> rendered but it's larger than width -> causing onWidthChanged -> adjustedContent runs again -> rinse/repeat).

There are other ways to try to solve this but the three I looked at are: 
1. After `adjustedContent` is run, it should update the actual `m_content` so that the following runs can work off the last text update (this will mean that the problematic `else` wouldn't be run constantly).
    * You can do this by setting the content at the end of the function (`setContent(ret);`)
2. Checking for some reasonable width limit (if width > 10000 then width = 10000)
3. Not resizing an image without a width because we're not sure about the intention of the author 
    * in this case these were small icons for social media that shouldn't be scaled up
    * I think we shouldn't scale any images because of the same reason but the PR is conservative and just stops it in the case of a img without a width

For the PR I went with # 3 because the others led to the icons being scaled but it messed up the look of the page.

Closes #20
2022-08-08 11:10:51 +00:00
l10n daemon script 21b9766ffa GIT_SILENT Sync po/docbooks with svn 2022-08-08 01:57:38 +00:00
l10n daemon script 292358ae6c GIT_SILENT Sync po/docbooks with svn 2022-08-04 01:52:22 +00:00
l10n daemon script c908870282 GIT_SILENT made messages (after extraction) 2022-08-04 00:48:06 +00:00
l10n daemon script 8844d94641 GIT_SILENT Sync po/docbooks with svn 2022-07-31 01:57:31 +00:00
l10n daemon script e0ca77da92 GIT_SILENT Sync po/docbooks with svn 2022-07-23 01:54:44 +00:00
l10n daemon script 8027f5cc64 GIT_SILENT made messages (after extraction) 2022-07-23 00:47:34 +00:00
l10n daemon script 91de33f5e8 GIT_SILENT Sync po/docbooks with svn 2022-07-17 01:53:10 +00:00
l10n daemon script 1f19f602dd GIT_SILENT made messages (after extraction) 2022-07-17 00:47:44 +00:00
Bart De Vries ce45074c79 Fix minor typos 2022-07-14 16:46:52 +02:00
Bart De Vries c3df8d8714 Fix "database is locked" errors caused by concurrent writes 2022-07-14 15:32:58 +02:00
l10n daemon script 338e73a8ab GIT_SILENT Sync po/docbooks with svn 2022-07-14 01:58:22 +00:00
l10n daemon script f429a223dd GIT_SILENT made messages (after extraction) 2022-07-14 00:47:49 +00:00
l10n daemon script a2096c054b GIT_SILENT Sync po/docbooks with svn 2022-07-11 01:55:55 +00:00
l10n daemon script 581f34488d GIT_SILENT Sync po/docbooks with svn 2022-07-10 01:57:35 +00:00
l10n daemon script 59f8f64230 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-07-10 01:52:32 +00:00
l10n daemon script c8bf67abca GIT_SILENT Sync po/docbooks with svn 2022-07-09 01:56:37 +00:00
l10n daemon script 2489e56914 GIT_SILENT Sync po/docbooks with svn 2022-07-07 01:48:06 +00:00
l10n daemon script fa2d552cd5 GIT_SILENT Sync po/docbooks with svn 2022-07-05 01:46:26 +00:00
l10n daemon script 0d9db722fb GIT_SILENT made messages (after extraction) 2022-07-05 00:47:05 +00:00
l10n daemon script 9684c55c3c GIT_SILENT Sync po/docbooks with svn 2022-07-04 01:53:16 +00:00
l10n daemon script 6ab2925e85 GIT_SILENT made messages (after extraction) 2022-07-04 00:48:12 +00:00
l10n daemon script 8cc4d3f918 GIT_SILENT Sync po/docbooks with svn 2022-07-03 02:05:24 +00:00
l10n daemon script 0b69cb1789 GIT_SILENT made messages (after extraction) 2022-07-03 00:49:34 +00:00