Skip to content

Commit

Permalink
fix(settings): Fit media into post type (app discover section)
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Mar 19, 2024
1 parent c0a9b59 commit e590626
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions apps/settings/src/components/AppStoreDiscover/PostType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export default defineComponent({
<style scoped lang="scss">
.app-discover-post {
max-height: 300px;
width: 100%;
background-color: var(--color-primary-element-light);
border-radius: var(--border-radius-rounded);
Expand All @@ -210,15 +211,20 @@ export default defineComponent({
&__text {
display: block;
padding: var(--border-radius-rounded);
width: 100%;
padding: var(--border-radius-rounded);
overflow-y: scroll;
}
// If there is media next to the text we do not want a padding on the bottom as this looks weird when scrolling
&:has(&__media) &__text {
padding-block-end: 0;
}
&__media {
display: block;
overflow: hidden;
max-height: 300px;
max-width: 450px;
border-radius: var(--border-radius-rounded);
Expand Down Expand Up @@ -262,11 +268,16 @@ export default defineComponent({
@media only screen and (max-width: 699px) {
.app-discover-post {
flex-direction: column;
max-height: 500px;
&--reverse {
flex-direction: column-reverse;
}
&__text {
flex: 1 1 50%;
}
&__media {
min-width: 100%;
Expand Down

0 comments on commit e590626

Please sign in to comment.