Skip to content

Commit

Permalink
titles on thumbs again
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecuvalo committed Nov 24, 2023
1 parent f377a8f commit 94e9431
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions components/content/templates/Album.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { Content } from 'data/graphql-generated';
import ContentThumb from 'components/ContentThumb';
import { F } from 'i18n';
import { useEffect, useState } from 'react';
import ContentLink from '@/components/ContentLink';
import { THUMB_WIDTH } from '@/util/constants';

const StyledAlbum = styled('ul')`
list-style: none;
Expand All @@ -30,14 +32,14 @@ const Item = styled('li')`
}
`;

// const LinkWrapper = styled('span')`
// & a {
// display: block;
// width: ${THUMB_WIDTH}px;
// max-width: ${THUMB_WIDTH}px;
// min-height: 1.1em;
// }
// `;
const LinkWrapper = styled('span')`
& a {
display: block;
width: ${THUMB_WIDTH}px;
max-width: ${THUMB_WIDTH}px;
min-height: 1.1em;
}
`;

// const DeleteButton = styled(IconButton)`
// position: absolute;
Expand Down Expand Up @@ -173,9 +175,9 @@ export default function Album({ content }: { content: Content }) {
handleNext={handleNext}
onClose={() => setCurrentIndexOpen(-1)}
/>
{/* {item.title && (
{item.title && (
<LinkWrapper>
{!isEditing && item.externalLink ? (
{/* {!isEditing && item.externalLink ? (
<a
className="notranslate"
href={item.externalLink}
Expand All @@ -188,12 +190,12 @@ export default function Album({ content }: { content: Content }) {
<ContentLink item={item} currentContent={content} className="notranslate">
{item.title}
</ContentLink>
) : null}
) : null} */}
<ContentLink item={item} currentContent={content} className="notranslate">
{item.title}
</ContentLink>
</LinkWrapper>
)} */}
)}
</Item>
))}
</StyledAlbum>
Expand Down

1 comment on commit 94e9431

@vercel
Copy link

@vercel vercel bot commented on 94e9431 Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.