diff --git a/apps/web/components/Organization/Slice/Districts/DistrictsSlice.css.ts b/apps/web/components/Organization/Slice/Districts/DistrictsSlice.css.ts index fa6b26b2d28b..a6e2e0787f22 100644 --- a/apps/web/components/Organization/Slice/Districts/DistrictsSlice.css.ts +++ b/apps/web/components/Organization/Slice/Districts/DistrictsSlice.css.ts @@ -1,4 +1,5 @@ import { style } from '@vanilla-extract/css' + import { themeUtils } from '@island.is/island-ui/theme' export const districtsList = style({ @@ -18,3 +19,8 @@ export const districtsList = style({ }, }), }) + +export const districtsListItem = style({ + breakInside: 'avoid', + display: 'block', +}) diff --git a/apps/web/components/Organization/Slice/Districts/DistrictsSlice.tsx b/apps/web/components/Organization/Slice/Districts/DistrictsSlice.tsx index e35c7fd8b7ff..6186d4007323 100644 --- a/apps/web/components/Organization/Slice/Districts/DistrictsSlice.tsx +++ b/apps/web/components/Organization/Slice/Districts/DistrictsSlice.tsx @@ -37,7 +37,7 @@ export const DistrictsSlice: React.FC> = ({ - + {slice.description && ( {slice.description} @@ -50,7 +50,12 @@ export const DistrictsSlice: React.FC> = ({ className={styles.districtsList} > {slice.links.map((link, index) => ( - +