diff --git a/js/pacosako_ui.js b/js/pacosako_ui.js index 118312e..029a9c1 100644 --- a/js/pacosako_ui.js +++ b/js/pacosako_ui.js @@ -1075,12 +1075,11 @@ $(function (){ * This breaks the CSS that should be ensuring a 1:1 aspect ratio. */ function fixSafariPadding() { - let elements = $('#cb_container, #cb_board'); - for (let element of elements) { - element = $(element); - const width = element.width(); - const topPadding = width; - element.css('padding-top', topPadding + 'px'); + let squares = $('#cb_board .cb-square'); + for (let square of squares) { + square = $(square); + const width = square.width(); + square.css('height', width + 'px'); } }