Skip to content

Commit

Permalink
Adjust GalleryViewThumbnail config
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerd Müller committed Sep 14, 2023
1 parent 9c8185b commit e9effd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/GalleryViewThumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import MiradorCanvas from '../lib/MiradorCanvas';
import IIIFThumbnail from '../containers/IIIFThumbnail';

const GalleryViewItem = styled('div')(({
theme, selected, hasAnnotations, config,
theme, selected, hasAnnotations,
}) => ({
'&:focus': {
outline: 'none',
Expand All @@ -28,7 +28,6 @@ const GalleryViewItem = styled('div')(({
cursor: 'pointer',
display: 'inline-block',
margin: `${theme.spacing(1)}px ${theme.spacing(0.5)}px`,
maxHeight: config.height + 45,
minWidth: '60px',
overflow: 'hidden',
padding: theme.spacing(0.5),
Expand Down Expand Up @@ -171,6 +170,7 @@ export class GalleryViewThumbnail extends Component {
<GalleryViewItem
key={canvas.index}
sx={{
maxHeight: config.height + 45,
...(selected && {
border: `2px solid ${theme => theme.palette.primary.main}`,
}),
Expand Down

0 comments on commit e9effd9

Please sign in to comment.