Skip to content

Commit

Permalink
Filtering on magazine tags on the /no/magasin page goes to Norwegian … (
Browse files Browse the repository at this point in the history
#2727)

* Filtering on magazine tags on the /no/magasin page goes to Norwegian homepage instead of filtering #2687

* Removed commented code

* Revert "Removed commented code"

This reverts commit 27daac5.

* Revert "Filtering on magazine tags on the /no/magasin page goes to Norwegian homepage instead of filtering #2687"

This reverts commit c7e3217.

* 🐛Filtering on magazine tags on the /no/magasin page

* 🐛 Changed parentSlug

* Changed grid-cols-card

* Changed grid-cols-card again
  • Loading branch information
VarunVAshrit authored Jan 16, 2025
1 parent d9fb33a commit bac3b05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ module.exports = {
transitionProperty: ['motion-safe'],
gridTemplateColumns: {
'auto-fill-fr': `repeat(auto-fill, minmax(80px,1fr))`,
card: `repeat(auto-fill, minmax(min(100%, theme(spacing.card-minWidth)), theme(spacing.card-maxWidth)))`,
card: `repeat(auto-fill,minmax(min(100%,220px),400px))`,
},
},
},
Expand Down
4 changes: 1 addition & 3 deletions web/templates/magazine/Magazineroom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ const MagazineRoom = ({ pageData, slug }: MagazineIndexTemplateProps) => {
const resultsRef = useRef<HTMLDivElement>(null)
const [isLoading, setIsLoading] = useState(false)
const router = useRouter()
const parentSlug =
(router.locale !== router.defaultLocale ? `/${router.locale}` : '') +
router.asPath.substring(router.asPath.indexOf('/'), router.asPath.lastIndexOf('/'))
const parentSlug = `${router.locale !== router.defaultLocale ? `/${router.locale}` : ''}${router.pathname}`

const magazineList = useMemo(() => magazineArticles, [magazineArticles])
const pagedList = useMemo(() => chunkArray(magazineList, 12), [magazineList])
Expand Down

0 comments on commit bac3b05

Please sign in to comment.