Skip to content

Commit

Permalink
remove fitted template (needs design)
Browse files Browse the repository at this point in the history
  • Loading branch information
burieberry committed Jan 31, 2025
1 parent fe7c68f commit 06dfaad
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions packages/base/catalog-entry.gts
Original file line number Diff line number Diff line change
Expand Up @@ -81,36 +81,6 @@ export class CatalogEntry extends CardDef {
},
});

static fitted = class Fitted extends Component<typeof this> {
<template>
<CatalogEntryContainer class='fitted'>
<header class='title' data-test-title>
<@fields.title />
</header>
<p class='description' data-test-description>
<@fields.description />
</p>
</CatalogEntryContainer>
<style scoped>
.fitted > * {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.title {
font: 600 var(--boxel-font-sm);
}
.description {
margin: 0;
color: var(--boxel-500);
font-size: var(--boxel-font-size-xs);
}
</style>
</template>
};

static isolated = class Isolated extends Component<typeof this> {
icon: CardorFieldTypeIcon | undefined;

Expand Down Expand Up @@ -375,31 +345,6 @@ export class CatalogEntry extends CardDef {
static edit = CatalogEntry.isolated;
}

interface Signature {
Element: HTMLElement;
Blocks: {
default: [];
};
}

class CatalogEntryContainer extends GlimmerComponent<Signature> {
<template>
<div class='entry' ...attributes>
{{yield}}
</div>
<style scoped>
.entry {
display: grid;
gap: 3px;
font: var(--boxel-font-sm);
margin-top: auto;
margin-bottom: auto;
margin-left: var(--boxel-sp-xs);
}
</style>
</template>
}

interface SpecTagSignature {
Element: HTMLDivElement;
Args: {
Expand Down

0 comments on commit 06dfaad

Please sign in to comment.