Skip to content

Commit

Permalink
remove large size of card
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Sep 11, 2024
1 parent 307439b commit 2848136
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 25 deletions.
10 changes: 10 additions & 0 deletions .changeset/dry-geckos-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@shopware-ag/meteor-component-library": major
---

Removed large width of card

The large size of the card has been removed. Container sizes
like this should be defined by the parent element.

To migrate, add a max-width of `83.125rem` to the parent element.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export const MinimalStory: StoryObj<MtCardMeta> = {
headerRight: null,
hero: false,
isLoading: false,
large: false,
avatar: null,
updateInheritance: fn(action("update:inhertitance")),
},
Expand Down Expand Up @@ -192,7 +191,6 @@ export const ExtendedStory: StoryObj<MtCardMeta> = {
headerRight: "Header right",
hero: false,
isLoading: false,
large: false,
avatar: "AVTR",
tabs: true,
"context-actions": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,6 @@ export default defineComponent({
default: false,
},
/**
* Render the card in a large size
*/
large: {
type: Boolean,
required: false,
default: false,
},
/**
* Render a inheritance toggle
*/
Expand Down Expand Up @@ -194,7 +185,6 @@ export default defineComponent({
const cardClasses = computed(() => ({
"mt-card--grid": !!slots.grid,
"mt-card--hero": !!props.hero,
"mt-card--large": props.large,
"mt-card--has-footer": !!slots.footer,
"mt-card--is-inherited": !!props.inheritance,
}));
Expand Down Expand Up @@ -309,19 +299,6 @@ export default defineComponent({
}
}
.mt-card--large {
max-width: 83.125rem;
& .mt-card__title,
& .mt-card__subtitle {
width: auto;
position: relative;
top: 0;
left: 0;
text-align: left;
}
}
.mt-card__titles {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 2848136

Please sign in to comment.