Totara Learn Open Discussions

What is causing this misalignment of blocks?

 
UrbaitisErnestas
What is causing this misalignment of blocks?
UrbaitisErnestas 发表于 2022年03月7日 Monday 22:38
 

Hi all,

No matter which dashboard I choose there is always a misalignment between center block and those on the sides. What is causing this? There is no custom HTML nor any plugin installed.



Craig Eves
Re: What is causing this misalignment of blocks?
Eves (Totara Support)Craig 发表于 2022年03月9日 Wednesday 17:54
小组 Totara

Hi Ernestas

That is strange that this is unaligned with no custom HTML or plugins.

Are you able to purge all caches in Totara as something may be being hung onto in the caches.

regards

UrbaitisErnestas
Re: What is causing this misalignment of blocks?
UrbaitisErnestas 发表于 2022年03月10日 Thursday 03:47
 

Hi, Craig,

I think I found the culprit.

When I edit main content background colour in theme settings, that colour appears around the box. See here:


Is there an easy way to eliminate that frame? The name of the theme is Basis. It's the default one, I think.

Craig Eves
Re: What is causing this misalignment of blocks?
Eves (Totara Support)Craig 发表于 2022年03月10日 Thursday 14:56
小组 Totara

Hi Ernestas

I tried changing the background colour in the basis theme of the main content in Totara 12 and the middle block  remained aligned at the top.

What version are you using of Totara ? 

I will ask a frontend developer if they can figure out what is happening.

regards



Craig Eves
Re: What is causing this misalignment of blocks?
Eves (Totara Support)Craig 发表于 2022年03月13日 Sunday 12:50
小组 Totara

Hi Ernestas

The misalignment of the central block is a known issue in the Basis theme that comes from the site having the Enable style overrides option enabled. 

The workaround if you want to keep the style overrides option enabled is to add the following to the custom CSS setting in the Basis theme setting.

#region-main { border-radius: 0; padding: 0; } body.content-only #region-main { border-radius: 4px; padding: 20px; }

Regards


UrbaitisErnestas
Re: What is causing this misalignment of blocks?
UrbaitisErnestas 发表于 2022年03月13日 Sunday 22:38
 

Wonderful, Craig! That fixed it!

My OCD and I, thank you for your assistance.