mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Fix template spacing on mobile
This commit is contained in:
parent
33f81279a6
commit
e96666b7af
@ -110,7 +110,7 @@ export function CourseTemplate({ course }) {
|
||||
</div>
|
||||
</div>
|
||||
</CardDescription>
|
||||
<CardFooter className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4">
|
||||
<CardFooter className={`flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4 ${isMobile ? "px-3" : ""}`}>
|
||||
<p className="text-sm text-gray-300">{course?.published_at && course.published_at !== "" ? (
|
||||
formatTimestampToHowLongAgo(course.published_at)
|
||||
) : (
|
||||
|
@ -99,7 +99,7 @@ export function DocumentTemplate({ document }) {
|
||||
</div>
|
||||
</div>
|
||||
</CardDescription>
|
||||
<CardFooter className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4">
|
||||
<CardFooter className={`flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4 ${isMobile ? "px-3" : ""}`}>
|
||||
<p className="text-sm text-gray-300">{document?.published_at && document.published_at !== "" ? (
|
||||
formatTimestampToHowLongAgo(document.published_at)
|
||||
) : (
|
||||
|
@ -101,7 +101,7 @@ export function VideoTemplate({ video }) {
|
||||
</div>
|
||||
</div>
|
||||
</CardDescription>
|
||||
<CardFooter className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4">
|
||||
<CardFooter className={`flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4 ${isMobile ? "px-3" : ""}`}>
|
||||
<p className="text-sm text-gray-300">{video?.published_at && video.published_at !== "" ? (
|
||||
formatTimestampToHowLongAgo(video.published_at)
|
||||
) : (
|
||||
|
Loading…
x
Reference in New Issue
Block a user