Skip to content

Conversation

@Bargraph6
Copy link
Contributor

What does this pull request do?

While working on the Italian TCE, I had to fix the table of contents (TOC) for the phone/tablet device sizes.

After checking, it looks like this menu is misaligned for most languages.

I have updated the flexbox CSS to:

  • set the header for the menu to full width

  • with the header a full width, the two columns now wrap to the next flexbox row.

  • I set each of the columns to take up 47.5% of the row (this leaves 5% leftover on the row)

  • I set the justify-content: space-between so that the 5% leftover becomes a gap between the columns.

The text-align: start and text-indent: 10px hanging achieve a similar visual effect as the previous text-indent: -5vw, without breaking out of the box boundaries.

How should this be manually tested?

Comparing the table of contents on to change everything across various device sizes and languages with and without the patch

Is there any background context you want to provide for reviewers?

Screenshots

* before after
en
phonetablet (portrait)tablet (landscape)
phone-before-en png tablet-vert-before-en png tablet-horz-before-en png
phonetablet (portrait)tablet (landscape)
phone-after-en png tablet-vert-after-en png tablet-horz-after-en png
fr_ca
phonetablet (portrait)tablet (landscape)
phone-before-fr png tbd tbd
phonetablet (portrait)tablet (landscape)
phone-after-fr png tbd tbd
ko
phonetablet (portrait)tablet (landscape)
phone-before-ko png tablet-vert-before-ko png tablet-horz-before-ko png
phonetablet (portrait)tablet (landscape)
phone-after-ko png tablet-vert-after-ko png tablet-horz-after-ko png
fa
phonetablet (portrait)tablet (landscape)
phone-before-fa png tablet-vert-before-fa png tablet-horz-before-fa png
phonetablet (portrait)tablet (landscape)
phone-after-fa png tablet-vert-after-fa png tablet-horz-after-fa png
th
phonetablet (portrait)tablet (landscape)
phone-before-th png tablet-vert-before-th png tablet-horz-before-th png
phonetablet (portrait)tablet (landscape)
phone-after-th png tablet-vert-after-th png tablet-horz-after-th png

While working on the Italian TCE, I had to fix the table of contents
(TOC) for the phone/tablet device sizes.

After checking, it looks like this menu is misaligned for most
languages.

I have updated the flexbox CSS to:

- set the header for the menu to full width

- with the header a full width, the two columns now wrap to the next
  flexbox row.

- I set each of the columns to take up 47.5% of the row (this leaves
  5% leftover on the row)

- I set the `justify-content: space-between' so that the 5% leftover
becomes a gap between the columns.

The `text-align: start' and `text-indent: 10px hanging' achieve a
similar visual effect as the previous `text-indent: -5vw', without
breaking out of the box boundaries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant