FreeCAD / FPA

The FreeCAD Project Association
27 stars 22 forks source link

[Responsive]Center the list menu on the screen #207

Closed Reqrefusion closed 1 month ago

Reqrefusion commented 5 months ago

At first, I thought this problem only existed on small screens, but it turns out that this problem exists on all screen sizes. I added more than one screenshot because it completely changes the overall behavior. You can try this center-position method on a relatively new, you can try an older ancient method. It also has a different appearance and can be used according to preference. To avoid confusion, I am not sharing its screenshots, but I am leaving the code below.

.menuList > li {
  position: relative;
  margin: auto;
}

Before: resim After: resim

Before: resim After: resim

Before: resim After: resim

Reqrefusion commented 4 months ago

@maxwxyz , can you take a look? This change is somewhat controversial. Unfortunately, I cannot tag the DWG.

yorikvanhavre commented 2 months ago

Honestly I prefer left-aligned. But it's a matter of taste...

Reqrefusion commented 2 months ago

Honestly I prefer left-aligned. But it's a matter of taste...

Maybe center alignment should be done only for mobile. In wide screen cases, left alignment is better in my opinion.

yorikvanhavre commented 2 months ago

Maybe center alignment should be done only for mobile. In wide screen cases, left alignment is better in my opinion.

Agree with that!

Reqrefusion commented 2 months ago

Maybe center alignment should be done only for mobile. In wide screen cases, left alignment is better in my opinion.

Agree with that!

@yorikvanhavre , I have set it to be on small screens as desired.

yorikvanhavre commented 1 month ago

Thanks!