Skip to content

Commit

Permalink
make card body always take up as much available space as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
m-m-mic committed May 30, 2023
1 parent 3600d4e commit adcfb17
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions mwui-stencil/src/components/mw-card-body/mw-card-body.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
:host {
display: block;
padding: 0 var(--mw-component-card-padding-components-x-default);
flex: 1;
}
2 changes: 1 addition & 1 deletion mwui-stencil/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ <h3>CardImage</h3>
<div style="display: grid; gap: 20px; grid-template-columns: 1fr 1fr">
<mw-card elevated>
<mw-card-header header="Header" subheader="Subheader"><mw-avatar slot="icon" alt="John Doe" /></mw-card-header>
<mw-card-image src="https://placedog.net/500/280?id=3" alt="card image" height="100px"></mw-card-image>
<mw-card-image src="https://placedog.net/500/280?id=3" alt="card image" height="170px"></mw-card-image>
</mw-card>
<mw-card elevated>
<mw-card-image src="https://placedog.net/500/280?id=3" alt="card image" height="250px"></mw-card-image>
Expand Down
8 changes: 8 additions & 0 deletions mwui-token-farm/input/MW_component.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
"focused": {
"value": "#ed2985",
"type": "color"
},
"inverted": {
"value": "#ffffff",
"type": "color"
}
},
"border": {
Expand Down Expand Up @@ -2113,6 +2117,10 @@
"muted": {
"value": "#44555b",
"type": "color"
},
"on-dark": {
"value": "#ffffff",
"type": "color"
}
},
"fg": {
Expand Down
8 changes: 8 additions & 0 deletions mwui-token-farm/input/MW_core.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
"focused": {
"value": "#ed2985",
"type": "color"
},
"inverted": {
"value": "#ffffff",
"type": "color"
}
},
"border": {
Expand Down Expand Up @@ -2113,6 +2117,10 @@
"muted": {
"value": "#44555b",
"type": "color"
},
"on-dark": {
"value": "#ffffff",
"type": "color"
}
},
"fg": {
Expand Down
8 changes: 8 additions & 0 deletions mwui-token-farm/input/MW_semantic_light.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
"focused": {
"value": "#ed2985",
"type": "color"
},
"inverted": {
"value": "#ffffff",
"type": "color"
}
},
"border": {
Expand Down Expand Up @@ -2113,6 +2117,10 @@
"muted": {
"value": "#44555b",
"type": "color"
},
"on-dark": {
"value": "#ffffff",
"type": "color"
}
},
"fg": {
Expand Down

0 comments on commit adcfb17

Please sign in to comment.