Skip to content

Commit

Permalink
[ONL-7971] Adjust table min width when card component is included (#1708
Browse files Browse the repository at this point in the history
)

* [ONL-7971] fixed table layout when custom row is shown

* [ONL-7971] update snapshots

* 2.2.53
  • Loading branch information
raulwwq0 authored Oct 5, 2023
1 parent 17a7ba3 commit e5633ff
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ebury/chameleon-components",
"version": "2.2.52",
"version": "2.2.53",
"main": "src/main.js",
"sideEffects": false,
"author": "Ebury Team (http://labs.ebury.rocks/)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports[`EcSmartTable #slots should only render custom row if "isCustomRowShown"
data-test="ec-table-scroll-container"
>
<table
class="ec-table"
class="ec-table tw-table-fixed"
>
<!--v-if-->
<tbody>
Expand Down Expand Up @@ -123,7 +123,7 @@ exports[`EcSmartTable #slots should render custom row if window width is lower t
data-test="ec-table-scroll-container"
>
<table
class="ec-table"
class="ec-table tw-table-fixed"
>
<!--v-if-->
<tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ec-table/__snapshots__/ec-table.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ exports[`EcTable should only render custom row if "isCustomRowShown" is true 1`]
data-test="ec-table-scroll-container"
>
<table
class="ec-table"
class="ec-table tw-table-fixed"
>
<!--v-if-->
<tbody>
Expand Down Expand Up @@ -862,7 +862,7 @@ exports[`EcTable should render custom row if window width is lower than 768px 1`
data-test="ec-table-scroll-container"
>
<table
class="ec-table"
class="ec-table tw-table-fixed"
>
<!--v-if-->
<tbody>
Expand Down
1 change: 1 addition & 0 deletions src/components/ec-table/ec-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<table
:aria-label="title"
class="ec-table"
:class="{ 'tw-table-fixed': canShowCustomRow }"
>
<ec-table-head
v-if="canShowTableHeader"
Expand Down

1 comment on commit e5633ff

@vercel
Copy link

@vercel vercel bot commented on e5633ff Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chameleon – ./

chameleon-ebury.vercel.app
chameleon-git-master-ebury.vercel.app
chameleon-dead-plane.vercel.app

Please sign in to comment.