Skip to content
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

fix(statusPanel): fix the thumbnail overlay in the light theme #1912

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions src/components/panels/Status/PrintstatusThumbnail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
:style="thumbnailStyle"
@focus="focusBigThumbnail"
@blur="blurBigThumbnail">
<v-card-title
class="white--text py-2 px-2"
style="background-color: rgba(0, 0, 0, 0.3); backdrop-filter: blur(3px)">
<v-card-title class="white--text py-2 px-2" :style="styleThumbnailOverlay">
<v-row>
<v-col style="width: 100px">
<span class="subtitle-2 text-truncate px-0 text--disabled d-block">
Expand Down Expand Up @@ -197,6 +195,19 @@ export default class StatusPanelPrintstatusThumbnail extends Mixins(BaseMixin) {
return {}
}

get styleThumbnailOverlay() {
const style = {
backgroundColor: 'rgba(0, 0, 0, 0.3)',
backdropFilter: 'blur(3px)',
}

if (!this.$vuetify.theme.dark) {
style.backgroundColor = 'rgba(255, 255, 255, 0.3)'
}

return style
}

focusBigThumbnail() {
if (this.$refs.bigThumbnail) {
const clientWidth = this.$refs.bigThumbnail.$el.clientWidth
Expand Down
Loading