Fix dimensions of ward list so it looks normal on mobile
This commit is contained in:
@@ -55,7 +55,7 @@ function sluggify($input) {
|
|||||||
$wardChunks = array_chunk($config['wardNames'], $wardListChunkSize);
|
$wardChunks = array_chunk($config['wardNames'], $wardListChunkSize);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!-- wp:columns -->
|
<!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"0","left":"0"}}}} -->
|
||||||
<div class="wp-block-columns">
|
<div class="wp-block-columns">
|
||||||
|
|
||||||
<?php for ($columnIdx = 0; $columnIdx < 4; $columnIdx++): ?>
|
<?php for ($columnIdx = 0; $columnIdx < 4; $columnIdx++): ?>
|
||||||
@@ -63,8 +63,8 @@ function sluggify($input) {
|
|||||||
<div class="wp-block-column is-vertically-aligned-top" style="padding-top:0;padding-bottom:0">
|
<div class="wp-block-column is-vertically-aligned-top" style="padding-top:0;padding-bottom:0">
|
||||||
|
|
||||||
<?php if (array_key_exists($columnIdx, $wardChunks)): ?>
|
<?php if (array_key_exists($columnIdx, $wardChunks)): ?>
|
||||||
<!-- wp:list -->
|
<!-- wp:list {"style":{"spacing":{"margin":{"top":"0","right":"0","bottom":"0","left":"0"}}}} -->
|
||||||
<ul class="wp-block-list">
|
<ul style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0" class="wp-block-list">
|
||||||
|
|
||||||
<?php foreach($wardChunks[$columnIdx] as $wardName): ?>
|
<?php foreach($wardChunks[$columnIdx] as $wardName): ?>
|
||||||
<!-- wp:list-item -->
|
<!-- wp:list-item -->
|
||||||
|
|||||||
Reference in New Issue
Block a user