From a91df33997fdac99c5f7ed8577adebda0a676ec2 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 2 Aug 2016 22:11:45 +0200 Subject: place schedule elements absolute on calulated positions, fixes wrap-around bug --- assets/css/_schedule.less | 5 ++++- template/assemblies/schedule.phtml | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/assets/css/_schedule.less b/assets/css/_schedule.less index 72ea294..6617432 100644 --- a/assets/css/_schedule.less +++ b/assets/css/_schedule.less @@ -10,6 +10,8 @@ .room { overflow: hidden; + position: relative; + height: 100px; } .now { @@ -32,7 +34,8 @@ .block { overflow: hidden; - float: left; + position: absolute; + top: 0; height: 100px; /* and now for small screens: */ diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml index 482ea39..f913b64 100644 --- a/template/assemblies/schedule.phtml +++ b/template/assemblies/schedule.phtml @@ -1,15 +1,18 @@