1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-01 13:22:38 +02:00

Fix UI for resource progress

This commit is contained in:
Kamran Ahmed
2024-08-03 11:16:19 +01:00
parent c20afce08f
commit 80eeadd6a6
3 changed files with 4 additions and 4 deletions

View File

@@ -13,11 +13,11 @@ const { resourceId, resourceType } = Astro.props;
<div
data-progress-nums-container
class:list={[
'striped-loader relative flex items-center justify-between rounded-md bg-white px-3 py-2.5',
'striped-loader relative flex items-center justify-between rounded-md bg-white px-2 sm:px-2.5 py-2 sm:py-2.5',
]}
>
<p
class='flex text-sm opacity-0 transition-opacity duration-300'
class='flex text-xs sm:text-sm opacity-0 transition-opacity duration-300'
data-progress-nums
>
<span

View File

@@ -79,7 +79,7 @@ const hasTnsBanner = !!tnsBannerLink;
<a
href='/roadmaps'
class='hidden rounded-md text-sm font-medium text-gray-500 transition-all hover:-translate-x-1 hover:text-black focus:outline-0 sm:block'
class='hidden rounded-md text-sm font-medium text-gray-500 transition-all hover:text-black focus:outline-0 sm:block'
aria-label='Back to All Roadmaps'
>
&larr;&nbsp;<span>&nbsp;All Roadmaps</span>

View File

@@ -52,7 +52,7 @@ export function ProgressShareButton(props: ProgressShareButtonProps) {
return (
<button
className={cn(
'flex items-center gap-1 text-sm font-medium disabled:cursor-not-allowed disabled:opacity-70',
'flex items-center gap-1 text-xs sm:text-sm font-medium disabled:cursor-not-allowed disabled:opacity-70',
isCopied ? 'text-green-500' : 'text-gray-500 hover:text-black',
className
)}