mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 20:00:25 +00:00
Make the whole item clickable of details
This commit is contained in:
@@ -18,7 +18,12 @@ import config from '../../ezprofile.config';
|
|||||||
|
|
||||||
const ListItem = ({ icon, title, value, link, skeleton = false }) => {
|
const ListItem = ({ icon, title, value, link, skeleton = false }) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex justify-start py-2 px-1 items-center">
|
<a
|
||||||
|
href={link}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
className="flex justify-start py-2 px-1 items-center"
|
||||||
|
>
|
||||||
<span className="w-2 m-2">{icon}</span>
|
<span className="w-2 m-2">{icon}</span>
|
||||||
<div className="flex-grow font-medium px-2">{title}</div>
|
<div className="flex-grow font-medium px-2">{title}</div>
|
||||||
<div
|
<div
|
||||||
@@ -26,18 +31,15 @@ const ListItem = ({ icon, title, value, link, skeleton = false }) => {
|
|||||||
skeleton ? 'flex-grow' : ''
|
skeleton ? 'flex-grow' : ''
|
||||||
} text-sm font-normal text-right mr-2 ml-3 ${link ? 'truncate' : ''}`}
|
} text-sm font-normal text-right mr-2 ml-3 ${link ? 'truncate' : ''}`}
|
||||||
>
|
>
|
||||||
<a
|
<div
|
||||||
href={link}
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
style={{
|
style={{
|
||||||
wordBreak: 'break-word',
|
wordBreak: 'break-word',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{value}
|
{value}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user