[fix] remove forced min and max width on AssetCard

This commit is contained in:
Arjan Singh
2025-09-17 11:18:53 -07:00
parent c896a4e342
commit a969147455
2 changed files with 13 additions and 1 deletions

View File

@@ -48,6 +48,12 @@ export const Interactive: Story = {
asset: createAssetData(),
interactive: true
},
decorators: [
() => ({
template:
'<div class="p-8 bg-gray-50 dark-theme:bg-gray-900 max-w-96"><story /></div>'
})
],
parameters: {
docs: {
description: {
@@ -63,6 +69,12 @@ export const NonInteractive: Story = {
asset: createAssetData(),
interactive: false
},
decorators: [
() => ({
template:
'<div class="p-8 bg-gray-50 dark-theme:bg-gray-900 max-w-96"><story /></div>'
})
],
parameters: {
docs: {
description: {

View File

@@ -7,7 +7,7 @@
:class="
cn(
// Base layout and container styles (always applied)
'rounded-xl overflow-hidden transition-all duration-200 min-w-60 max-w-64',
'rounded-xl overflow-hidden transition-all duration-200',
// Button-specific styles
interactive && [
'appearance-none bg-transparent p-0 m-0 font-inherit text-inherit outline-none cursor-pointer text-left',