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

Add fitted preview on playground panel #2133

Merged
merged 11 commits into from
Feb 13, 2025
6 changes: 3 additions & 3 deletions packages/base/cards-grid.gts
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ class Isolated extends Component<typeof CardsGrid> {
letter-spacing: 0.21px;
}
.cards-grid {
--grid-card-min-width: 11.125rem;
--grid-card-max-width: 1fr;
--grid-card-height: 15.125rem;
--grid-card-min-width: 10.625rem; /* 170px */
--grid-card-max-width: 10.625rem; /* 170px */
--grid-card-height: 15.625rem; /* 250px */

padding: var(--cards-grid-padding-top) 0 0 var(--boxel-sp-sm);

Expand Down
2 changes: 0 additions & 2 deletions packages/base/default-templates/fitted.gts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import GlimmerComponent from '@glimmer/component';
import type { CardContext, BaseDef, CardDef } from '../card-api';
// @ts-ignore no types
import cssUrl from 'ember-css-url';
import { cardTypeDisplayName, cardTypeIcon } from '@cardstack/runtime-common';
import { BasicFitted } from '@cardstack/boxel-ui/components';

Expand Down
2 changes: 1 addition & 1 deletion packages/base/field-component.gts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export function getBoxComponent(
works if we use up all the space horizontally and vertically that is available
to the card since some of our queries are height queries
*/
height: 58px;
height: 65px;
container-name: fitted-card;
container-type: size;
overflow: hidden;
Expand Down
Loading