Hide extra button twitter embeded

This commit is contained in:
Faisal Amir 2024-03-14 20:05:28 +07:00
parent ac10c1ac64
commit cfde9f886a
2 changed files with 34 additions and 11 deletions

View File

@ -91,7 +91,12 @@ const Testimonial = () => {
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 text-left">
<div className="space-y-4">
{firstColumn.map((item, i) => {
if (item.type === 'tweet') return <Tweet key={i} id={item.id} />
if (item.type === 'tweet')
return (
<div className="tweet-wrapper">
<Tweet key={i} id={item.id} />
</div>
)
if (item.type === 'youtube')
return (
<div>
@ -111,7 +116,12 @@ const Testimonial = () => {
</div>
<div className="space-y-4">
{secondColumn.map((item, i) => {
if (item.type === 'tweet') return <Tweet key={i} id={item.id} />
if (item.type === 'tweet')
return (
<div className="tweet-wrapper">
<Tweet key={i} id={item.id} />
</div>
)
if (item.type === 'youtube')
return (
<div>
@ -131,7 +141,12 @@ const Testimonial = () => {
</div>
<div className="space-y-4">
{thirdColumn.map((item, i) => {
if (item.type === 'tweet') return <Tweet key={i} id={item.id} />
if (item.type === 'tweet')
return (
<div className="tweet-wrapper">
<Tweet key={i} id={item.id} />
</div>
)
if (item.type === 'youtube')
return (
<div>
@ -151,7 +166,12 @@ const Testimonial = () => {
</div>
<div className="space-y-4">
{fourthColumn.map((item, i) => {
if (item.type === 'tweet') return <Tweet key={i} id={item.id} />
if (item.type === 'tweet')
return (
<div className="tweet-wrapper">
<Tweet key={i} id={item.id} />
</div>
)
if (item.type === 'youtube')
return (
<div>

View File

@ -156,11 +156,14 @@
}
}
.actions_node_modules-react-tweet-dist-twitter-theme-tweet-actions-module,
.authorFollow_node_modules-react-tweet-dist-twitter-theme-tweet-header-module {
.tweet-wrapper {
[class*='actions_'] {
display: none !important;
}
.replies_node_modules-react-tweet-dist-twitter-theme-tweet-replies-module {
[class*='.authorFollow_'] {
display: none !important;
}
[class*='replies_'] {
margin-top: 10px;
}
}