diff --git a/components/character/CharacterGrid/index.module.scss b/components/character/CharacterGrid/index.module.scss index f379266b..947baece 100644 --- a/components/character/CharacterGrid/index.module.scss +++ b/components/character/CharacterGrid/index.module.scss @@ -1,4 +1,4 @@ -#CharacterGrid { +.grid { display: flex; flex-direction: column; justify-content: center; @@ -8,32 +8,32 @@ @include breakpoint(tablet) { align-items: center; } -} -#Characters { - display: grid; - grid-template-columns: repeat(5, minmax(0, 1fr)); - gap: $unit-3x; - margin: 0; - padding: 0; - max-width: $grid-width; - isolation: isolate; - - @include breakpoint(tablet) { - gap: $unit-2x; - justify-content: space-between; - width: 100%; - } - - // prettier-ignore - @media only screen - and (max-width: 500px) - and (max-height: 920px) - and (-webkit-min-device-pixel-ratio: 2) { - gap: $unit; - } - - & > li:last-child { + .characters { + display: grid; + grid-template-columns: repeat(5, minmax(0, 1fr)); + gap: $unit-3x; margin: 0; + padding: 0; + max-width: $grid-width; + isolation: isolate; + + @include breakpoint(tablet) { + gap: $unit-2x; + justify-content: space-between; + width: 100%; + } + + // prettier-ignore + @media only screen + and (max-width: 500px) + and (max-height: 920px) + and (-webkit-min-device-pixel-ratio: 2) { + gap: $unit; + } + + & > li:last-child { + margin: 0; + } } } diff --git a/components/character/CharacterGrid/index.tsx b/components/character/CharacterGrid/index.tsx index 53656f81..deb914f0 100644 --- a/components/character/CharacterGrid/index.tsx +++ b/components/character/CharacterGrid/index.tsx @@ -515,7 +515,7 @@ const CharacterGrid = (props: Props) => { cancelAction={cancelAlert} cancelActionText={'Got it'} /> -