Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor UX fixes for the projects page #111

Merged
merged 3 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions components/projects/ProjectTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ export default function ProjectTile({ project }: { project: Project }) {
{imagesQuery?.data &&
Object.entries(imagesQuery?.data).map(
([key, value]: [string, string]) => (
<span className="avatar rounded-full relative border-[2px] border-[#F8F8F8] w-[30px] overflow-hidden">
<img className="w-full block" src={value} alt="temp" />
<span className="avatar rounded-full relative border-[2px] border-[#F8F8F8] w-[30px] h-[30px] overflow-hidden">
<img
className="w-full h-full object-cover"
src={value}
alt="temp"
/>
</span>
)
)}
Expand Down
2 changes: 1 addition & 1 deletion components/startups/StartupProfileTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function StartupProfileTile({
/>
</InternalLink>

<h1 className="mt-1 text-sm">{displayName}</h1>
<h1 className="mt-1 text-center text-sm">{displayName}</h1>
<p className="text-gray-500 text-xs">{role}</p>
{/* {connectionStatus ? (
<div
Expand Down
12 changes: 8 additions & 4 deletions components/startups/StartupTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ export default function StartupTile({ startup }: { startup: Startup }) {
className="m-0 p-0 list-none rounded-md"
>
<div className="bg-white border border-0.5 relative h-0 pb-[75%] overflow-hidden rounded-md group">
<div className="flex items-center justify-center text-center">
<div className="flex items-center justify-center text-center absolute inset-0 p-4">
<img
src={logo}
className="w-[400px] h-[250px] mt-auto rounded-lg rounded-b-sm object-contain "
className="max-w-full max-h-full w-auto h-auto rounded-md object-contain"
alt={`${name} logo`}
/>
</div>
Expand Down Expand Up @@ -184,8 +184,12 @@ export default function StartupTile({ startup }: { startup: Startup }) {
{imagesQuery?.data &&
Object.entries(imagesQuery?.data).map(
([key, value]: [string, string]) => (
<span className="avatar rounded-full relative border-[2px] border-[#F8F8F8] w-[30px] overflow-hidden">
<img className="w-full block" src={value} alt="temp" />
<span className="avatar rounded-full relative border-[2px] border-[#F8F8F8] w-[30px] h-[30px] overflow-hidden">
<img
className="w-full h-full object-cover"
src={value}
alt="temp"
/>
</span>
)
)}
Expand Down
Loading