diff --git a/components/reps/GridRep/index.module.scss b/components/reps/GridRep/index.module.scss index 76909c85..297a92b6 100644 --- a/components/reps/GridRep/index.module.scss +++ b/components/reps/GridRep/index.module.scss @@ -6,8 +6,8 @@ display: grid; grid-template-rows: 1fr 1fr; gap: $unit; - padding: $unit-2x $unit-2x 0 $unit-2x; min-width: 320px; + position: relative; width: 100%; opacity: 1; @@ -54,6 +54,22 @@ } } + a { + display: grid; + grid-template-rows: auto 1fr; + grid-gap: 8px; + gap: 8px; + padding: $unit-2x $unit-2x 0 $unit-2x; + } + + button { + position: absolute; + z-index: 2; + right: $unit; + top: $unit; + width: 44px; + } + .gridContainer { aspect-ratio: 2/0.95; width: 100%; diff --git a/components/reps/GridRep/index.tsx b/components/reps/GridRep/index.tsx index 5bc83389..ff3360c4 100644 --- a/components/reps/GridRep/index.tsx +++ b/components/reps/GridRep/index.tsx @@ -501,19 +501,17 @@ const GridRep = ({ party, loading, onClick, onSave }: Props) => { ) const favoriteButton = ( - -