A platform for community discussion. Free, open, simple.
UX: Tweaks to default theme screenshots (#41592)
Penar Musaraj31be1bc330c1
diff --git a/app/assets/stylesheets/common/components/admin-onboarding-banner.scss b/app/assets/stylesheets/common/components/admin-onboarding-banner.scssindex 576160bb56c..e473a109fce 100644--- a/app/assets/stylesheets/common/components/admin-onboarding-banner.scss+++ b/app/assets/stylesheets/common/components/admin-onboarding-banner.scss@@ -186,6 +186,10 @@}.theme-picker-modal {+ .d-modal__container {+ background-color: var(--primary-very-low);+ }+&__loading {display: flex;justify-content: center;@@ -195,34 +199,34 @@&__themes {display: grid;grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));- gap: var(--space-4);+ gap: var(--space-8);}&__card {position: relative;display: flex;flex-direction: column;- border: 2px solid var(--content-border-color);- border-radius: var(--d-border-radius);- overflow: hidden;- background: var(--secondary);cursor: pointer;- transition: border-color 0.15s ease;- &:hover {- border-color: var(--primary-low-mid);+ .theme-card-preview__image-wrapper {+ border: 2px solid var(--content-border-color);+ height: 250px;+ border-radius: var(--d-border-radius);+ box-shadow: var(--shadow-card);++ @include viewport.from(md) {+ height: 24vw; // adjusts with window width (like the modal itself)+ }}+ &:hover,&.--selected {- border-color: var(--tertiary);- box-shadow: 0 0 0 1px var(--tertiary);+ .theme-card-preview__image-wrapper {+ border-color: var(--tertiary);+ }}}- .theme-card-preview__image-wrapper {- height: 220px;- }-.theme-card-preview__image {image-rendering: -webkit-optimize-contrast;image-rendering: crisp-edges;@@ -231,13 +235,13 @@&__footer {display: flex;justify-content: center;- margin-top: var(--space-4);+ margin-top: var(--space-8);}&__enabled-badge {position: absolute;top: 0;- right: 0;+ right: -2px;display: inline-flex;align-items: center;gap: var(--space-1);@@ -246,7 +250,7 @@color: var(--secondary);background: var(--tertiary);padding: var(--space-1) var(--space-2);- border-radius: 0 0 0 var(--d-border-radius);+ border-radius: var(--d-border-radius);z-index: 1;}diff --git a/frontend/discourse/app/components/admin-onboarding/modal/theme-picker.gjs b/frontend/discourse/app/components/admin-onboarding/modal/theme-picker.gjsindex 8b429a4a8b2..4cfc1241c31 100644--- a/frontend/discourse/app/components/admin-onboarding/modal/theme-picker.gjs+++ b/frontend/discourse/app/components/admin-onboarding/modal/theme-picker.gjs@@ -103,7 +103,7 @@ export default class ThemePickerModal extends Component {<template><DModal- class="theme-picker-modal --large"+ class="theme-picker-modal --max"@title={{i18n "admin_onboarding_banner.select_theme.modal_title"}}@closeModal={{@closeModal}}>diff --git a/themes/foundation/screenshots/dark.png b/themes/foundation/screenshots/dark.pngindex 962f4a53ad8..5259fc71813 100644Binary files a/themes/foundation/screenshots/dark.png and b/themes/foundation/screenshots/dark.png differdiff --git a/themes/foundation/screenshots/light.png b/themes/foundation/screenshots/light.pngindex 2f415d946ab..63f6fb8465f 100644Binary files a/themes/foundation/screenshots/light.png and b/themes/foundation/screenshots/light.png differdiff --git a/themes/horizon/screenshots/dark.png b/themes/horizon/screenshots/dark.pngindex 196b9e0e66f..359929cbdce 100644Binary files a/themes/horizon/screenshots/dark.png and b/themes/horizon/screenshots/dark.png differdiff --git a/themes/horizon/screenshots/light.png b/themes/horizon/screenshots/light.pngindex 59053c00714..49f275afe4c 100644Binary files a/themes/horizon/screenshots/light.png and b/themes/horizon/screenshots/light.png differ