-
-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File thumbnails broken in History Panel when file is placed inside folder(s) #2009
Comments
@mdziekon your links to the preview/new code doesn't work for me. can you pls a link to the file with line itself and not in the PR view? |
@meteyou right, that's probably because Github collapses both of these files by default, therefore hotlinking to specific lines does not work as intended. Here's perma-link to working code: mainsail/src/components/panels/HistoryListPanel.vue Lines 903 to 944 in 8e7db0d
Here's perma-link to broken code: mainsail/src/components/panels/History/HistoryListRow.vue Lines 150 to 180 in 866a0c6
|
Mainsail Version:
2.12.0
Browser:
Firefox
Device:
Desktop PC
Operating System:
Linux
What happened?
When using History page / panel, files which are placed in folder(s) do not have proper thumbnail displayed, making it much harder to quickly find entries we are looking for. Files placed in the root directory do not exhibit this behavior.
What did you expect to happen instead?
Files with thumbnails available should have that thumbnail displayed, regardless of their location in file system.
How to reproduce this bug?
Additional information:
This appears to be a regression caused by the refactoring done in #1274. The culprit seems to be incorrect creation of thumbnail url for "small thumbnails", which incorrectly removes the final
/
character needed to build correct relative thumbnail path. This does not occur for "big thumbnails".Previous, working code:
https://github.com/mainsail-crew/mainsail/pull/1274/files#diff-21c7ea907f2434c89b31411768fd6e832d8b9afd3597a8a5cdb835343ef03319L903-L944
New, broken code:
https://github.com/mainsail-crew/mainsail/pull/1274/files#diff-26b52f4bf48f9c0010205b6d9b658c3f1f329ceaea65dae5bfc28d7b62058426R150-R180
I'll post a patch for this bug shortly, as I've already fixed it in my local version.
The text was updated successfully, but these errors were encountered: