-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
refactor: rework details page and make responsive #616
Conversation
pages/musicalbum/_itemId/index.vue
Outdated
this.setPageTitle({ title: this.item.Name }); | ||
this.setAppBarOpacity({ opaqueAppBar: false }); | ||
const hash = this.getBlurhash(this.item, ImageType.Backdrop); | ||
this.setBackdrop({ hash }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, what about setting this in an immediate watcher, so changes of the metadata while in the page are applied (and you also don't need beforeMount anymore)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it to a deep, immediate watcher on all the pages. setAppBarOpacity was moved to created
, so that it's earlier in the lifecycle and happens server-side for the SSR version.
9a2e6a4
to
d1d52e3
Compare
</h2> | ||
<v-col cols="12" sm="9" class="pl-0 pr-0"> | ||
<!-- eslint-disable-next-line vue/no-v-html --> | ||
<p class="item-overview" v-html="overview" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p class="item-overview" v-html="overview" /> | |
<p class="item-overview" v-text="overview" /> |
Why not v-text
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because some providers have markup or paragraphs in them, and these don't work without this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imo we should just accept raw text from overviews, but that needs discussion and it's for another PR.
v-if="item.Taglines && item.Taglines.length > 0" | ||
class="text-subtitle-1 text-truncate" | ||
> | ||
{{ item.Taglines[0] }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we don't show all of them?
@ferferga I don't touch that page at all, so I highly doubt it's due to this branch. I've had this same issue before on random commits and have never been able to track it down. It usually gets fixed on another random commit. I suspect it's the same thing happening with the settings page. |
743d467
to
4c47234
Compare
@ferferga about this #616 (comment) it's due to how the breakpoints are done. The top picture should be of sm breakpoint I guess, and it goes up to ~900px so it'd be way too large for the mobile view |
479e339
to
4c47234
Compare
4c47234
to
5027c09
Compare
5027c09
to
649c991
Compare
649c991
to
40dc356
Compare
Codecov Report
@@ Coverage Diff @@
## master #616 +/- ##
==========================================
- Coverage 11.76% 11.48% -0.28%
==========================================
Files 133 135 +2
Lines 3451 3543 +92
Branches 525 528 +3
==========================================
+ Hits 406 407 +1
- Misses 3024 3115 +91
Partials 21 21
Continue to review full report at Codecov.
|
40dc356
to
1f7eac6
Compare
f0c42f8
to
6f81e22
Compare
de41d6e
to
0327c37
Compare
Also, Edit: they work, it's just links in albums or movies to those persons redirect to the item page and not the proper new ones, I'm on it |
29abf5d
to
1a9345c
Compare
1a9345c
to
44450c2
Compare
3e9ff2b
to
332f693
Compare
Kudos, SonarCloud Quality Gate passed!
|
vue-router
directly for a name and parameters. This means we're not using straight strings anymore, making future changes easier.