moin icon indicating copy to clipboard operation
moin copied to clipboard

improved footer layout

Open cintek opened this issue 1 year ago • 16 comments

Improves the layout of the footer:

  • no overlapping
  • bottom of credits and logos are on one line -> more harmonic (this also affects the basic theme)

Before:

Modernized theme: Footer before change

After

Modernized theme: Footer after change

cintek avatar Sep 25 '23 20:09 cintek

Agree the footer could be improved.

This change breaks the topside theme.

Not sure why moinmoin powered is rendered both as text and logo; maybe delete the text. Same for python powered.

Also try replacing the revid with rev_number

RogerHaase avatar Oct 01 '23 17:10 RogerHaase

Not sure why moinmoin powered is rendered both as text and logo; maybe delete the text. Same for python powered.

I like this text because you can use it to search the web to find all running Moin wikis. Maybe we should change it to "MoinMoin2 powered" or similar to distinguish between old and new versions.

UlrichB22 avatar Oct 01 '23 18:10 UlrichB22

The moinmoin powered text and logo target links are the same. I was only suggesting that one or the other be removed.

RogerHaase avatar Oct 01 '23 20:10 RogerHaase

This change breaks the topside theme.

With the last commit I fixed it. Now it looks like this: topside_footer

The width of the footer is adjusted to the one of the content so it looks more harmonic. Before, the footer had a shorter width which didn't look so good.

cintek avatar Oct 02 '23 07:10 cintek

Maybe we should change it to "MoinMoin2 powered" or similar to distinguish between old and new versions.

I don't think so because at https://moinmo.in/ you can find information about both Moin 1.9 and Moin2

cintek avatar Oct 02 '23 07:10 cintek

Also changed the layout of the footer on small devices.

Screenshot before the change:

Topside theme: Footer on mobile devices before the change

Screenshot after the change:

Topside theme: Footer on mobile devices after the change

cintek avatar Oct 02 '23 08:10 cintek

topside theme seems broken for small screen sizes

RogerHaase avatar Oct 08 '23 20:10 RogerHaase

topside theme seems broken for small screen sizes

Yes, I think I tested it only on the settings page where it seemed to be alright. Now I fixed the theme on small devices: topside_small_device

cintek avatar Oct 27 '23 14:10 cintek

I did some tests with a small device size. Sorry for using a German environment.

  • Modernized theme with old layout on the left and new layout on the right.

For me, the layout of the footer has improved in the modernized theme, but the header has also changed (the item history has been moved to the left).

  • Topside theme with old layout on the left and new layout on the right.

For me, the layout has not improved in the topside theme because the footer needs more room. I would prefer to have the "MoinMoin powered" text back in one line with "Python powered" and the other texts as it was before.

By the way, I don't like the snow background image in the footer because it has a slightly different color than the cloud image in the header. What do you think about using the white-clouds.jpg in the footer as well? I know this is not part of this PR.

UlrichB22 avatar Jan 23 '24 16:01 UlrichB22

* **Modernized theme** with old layout on the left and new layout on the right.

For me, the layout of the footer has improved in the modernized theme, but the header has also changed (the item history has been moved to the left).

Is this so bad? Sometimes the history has more items and than it needs more space. In this case it seems better if the history items begin on the left side.

But we could align it so it is on the same height as other elements:

Aligned item history in Modernized theme

* **Topside theme** with old layout on the left and new layout on the right.

For me, the layout has not improved in the topside theme because the footer needs more room. I would prefer to have the "MoinMoin powered" text back in one line with "Python powered" and the other texts as it was before.

Okay, I reversed most of the layout changes and did a commit but the icons of the item views still take more place than before. The reason for this is that on a small device it is harder to tap on small icons so we prevent tapping on the wrong icon:

topside-layout

By the way, I don't like the snow background image in the footer because it has a slightly different color than the cloud image in the header. What do you think about using the white-clouds.jpg in the footer as well? I know this is not part of this PR.

Of course we can change the image in this PR :) It would look like this:

topside-clouds

Or if we take the bottom of that picture:

topside-clouds-2

Almost invisible but you can still see the color gradient.

cintek avatar Jan 24 '24 09:01 cintek

But we could align it so it is on the same height as other elements: I agree, this would be the best for the header of the modernized theme.

Or if we take the bottom of that picture: This looks good for me (topside theme), thanks.

In your last screenshots there is a line break in "HTML 5", maybe we should change it to "HTLM5" in templates/snippets.html.

UlrichB22 avatar Jan 24 '24 15:01 UlrichB22

In your last screenshots there is a line break in "HTML 5", maybe we should change it to "HTLM5" in templates/snippets.html.

That's correct but it happens only if the device has a smaller width than 380px which is really small ;) But others like Mozilla or Wikipedia are also calling it 'HTML5' so it makes sense to change it so I did it.

What do you say about the suggestions for the image of the footer? Do you prefer the first or the second one (third and forth image in https://github.com/moinwiki/moin/pull/1527#issuecomment-1907736272)?

cintek avatar Feb 09 '24 15:02 cintek

I prefer the 4th image (the bottom of white-clouds.jpg), but both are fine.

If your work is finished, may I ask you to create a new short PR with one commit rebased on the latest version? When we refer to the number of this PR, we still have the history of comments.

UlrichB22 avatar Feb 09 '24 15:02 UlrichB22

If your work is finished, may I ask you to create a new short PR with one commit rebased on the latest version?

Of course :)

I changed the background picture of the footer and then I saw that I forgot to implement the change in the header (see https://github.com/moinwiki/moin/pull/1527#issuecomment-1907736272) so I just worked on that. Please check if the changes of the modern theme on mobile are okay now.

In the end I rebased the branch on your master branch and squashed the commits of branch improve-footer.

cintek avatar Feb 09 '24 16:02 cintek

IMO this is ready to merge. @RogerHaase do you agree?

UlrichB22 avatar Feb 14 '24 13:02 UlrichB22

I like the footer background.

Using modernized theme, there is a horizontal scroll bar at window widths below ~850 pixels.

Using topside theme, there is a horizontal scroll bar at ~1200 pixels wide. The icons for moin-powered and python-powered shift from right to left-center at windows widths from ~850 to ~1000.

RogerHaase avatar Feb 14 '24 14:02 RogerHaase