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

View File

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