digitalfabrik / integreat-cms

Simplified content management back end for the Integreat App - a multilingual information platform for newcomers
https://digitalfabrik.github.io/integreat-cms/
Apache License 2.0
56 stars 33 forks source link

Refactor language tabs and make them responsive #1815

Closed JoeyStk closed 2 months ago

JoeyStk commented 1 year ago

Motivation

We want to improve the CMS views for mobile screen. One major remaining issue are the language tabs. Up until now they still look wild (s. screenshot). However because they were initially written in Python this needs major changes. Therefore we want to rebuild the language tabs to use Javascript. Based on that we want check via Javascript how much space there is and fill the space with as many tabs as possible (as by now this is hard-coded at four tabs) and store the left-over tabs in a dropdown "Other languages". In case there is not enough space to even show the current language and "other languages" the dropdown has the higher hierarchy and the current language gets hidden.

Proposed Solution

Alternatives

Additional Context

This is part of the Meta Issue https://github.com/digitalfabrik/integreat-cms/issues/170 to make the CMS responsive.

This is blocked by:

Design Requirements

image

JoeyStk commented 1 year ago

Suggestion from @timoludwig

My suggestion would be the following:

Since we don't know how many tabs fit onto the screen until we have rendered them, this solution would have to be implemented in JS.