Skip to content

Commit

Permalink
docs: update draggable demo with rtl mode (#34785)
Browse files Browse the repository at this point in the history
* docs: update draggable demo with rtl mode

* test: update tabs demo snapshot
  • Loading branch information
miracles1919 committed Mar 31, 2022
1 parent f5c6379 commit 550f60f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
Expand Up @@ -945,8 +945,7 @@ exports[`renders ./components/tabs/demo/custom-tab-bar-node.md extend context co
style="transform:translate(0px, 0px)"
>
<div
class=""
style="margin-right:24px"
class="dragnode "
>
<div
class="ant-tabs-tab ant-tabs-tab-active"
Expand All @@ -962,8 +961,7 @@ exports[`renders ./components/tabs/demo/custom-tab-bar-node.md extend context co
</div>
</div>
<div
class=""
style="margin-right:24px"
class="dragnode "
>
<div
class="ant-tabs-tab"
Expand All @@ -979,8 +977,7 @@ exports[`renders ./components/tabs/demo/custom-tab-bar-node.md extend context co
</div>
</div>
<div
class=""
style="margin-right:24px"
class="dragnode "
>
<div
class="ant-tabs-tab"
Expand Down
9 changes: 3 additions & 6 deletions components/tabs/__tests__/__snapshots__/demo.test.js.snap
Expand Up @@ -831,8 +831,7 @@ exports[`renders ./components/tabs/demo/custom-tab-bar-node.md correctly 1`] = `
style="transform:translate(0px, 0px)"
>
<div
class=""
style="margin-right:24px"
class="dragnode "
>
<div
class="ant-tabs-tab ant-tabs-tab-active"
Expand All @@ -848,8 +847,7 @@ exports[`renders ./components/tabs/demo/custom-tab-bar-node.md correctly 1`] = `
</div>
</div>
<div
class=""
style="margin-right:24px"
class="dragnode "
>
<div
class="ant-tabs-tab"
Expand All @@ -865,8 +863,7 @@ exports[`renders ./components/tabs/demo/custom-tab-bar-node.md correctly 1`] = `
</div>
</div>
<div
class=""
style="margin-right:24px"
class="dragnode "
>
<div
class="ant-tabs-tab"
Expand Down
6 changes: 5 additions & 1 deletion components/tabs/demo/custom-tab-bar-node.md
Expand Up @@ -50,7 +50,7 @@ const DraggableTabNode = ({ index, children, moveNode }) => {
});
drop(drag(ref));
return (
<div ref={ref} style={{ marginRight: 24 }} className={isOver ? dropClassName : ''}>
<div ref={ref} className={`dragnode ${isOver ? dropClassName : ''}`}>
{children}
</div>
);
Expand Down Expand Up @@ -152,4 +152,8 @@ ReactDOM.render(
background: #fefefe;
transition: all 0.3s;
}

.dragnode {
margin-inline-end: 24px;
}
```

0 comments on commit 550f60f

Please sign in to comment.