Make WordPress Core

Opened 5 weeks ago

Last modified 5 weeks ago

#64088 new defect (bug)

Button to add a post tag breaks into new line in German translation

Reported by: stromhalm's profile stromhalm Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 2.8
Component: Editor Keywords: has-patch close
Focuses: ui Cc:

Description

Hi there,

I noticed that in the German translation the "Add Post Tag" button breaks into a new line in the "Tags" widget on post pages. This is due to the 180px fixed width of the input field and the translated word "Hinzufügen" being significantly longer than the original "Add".

This can be easily reproduced on a new install with the German translation activated in the settings and the "Classic Editor" plugin installed. I understand that reproducing this bug requires the external plugin, but since the faulty CSS is still located in the Core, I would suggest it being fixed here.

Please have a look at the attached screenshots of the English and German widgets to see the problem.

Attachments (4)

post tags german.png (27.4 KB) - added by stromhalm 5 weeks ago.
Post Tags widget with the German translation activated
post tags english.png (38.6 KB) - added by stromhalm 5 weeks ago.
Widget with English localization
10201 - Fix applied.png (37.8 KB) - added by stromhalm 5 weeks ago.
Another screenshot with my fix from PR 10201 applied
64088.diff (624 bytes) - added by sabernhardt 5 weeks ago.
uses flex when tags box is in narrow column, switching to block on smaller screens

Download all attachments as: .zip

Change History (9)

@stromhalm
5 weeks ago

Post Tags widget with the German translation activated

@stromhalm
5 weeks ago

Widget with English localization

#1 @stromhalm
5 weeks ago

  • Summary changed from Post tags breaks to Button to add a post tag breaks into new line in German translation

This ticket was mentioned in PR #10201 on WordPress/wordpress-develop by @stromhalm.


5 weeks ago
#2

  • Keywords has-patch added

Hi there,

this would be as simple fix for my ticket #64088 on Trac.
It adjusts the width of the input element in the post tags widget dynamically according to the width of the "Add Post Tag" button using Flexbox.

@stromhalm
5 weeks ago

Another screenshot with my fix from PR 10201 applied

#3 follow-up: @sabernhardt
5 weeks ago

  • Component changed from Taxonomy to Editor
  • Focuses administration removed
  • Version changed from trunk to 2.8

The 180px width goes back to [11172], for adding tags in the 'classic' editor.

The "Add" button can wrap below the input with certain languages when the Tags meta box is in a second column and when the viewport width is more than 782 pixels wide. The buttons are more than 70 pixels wide for about 40 of the button's translations (the number 40 is based on the Segoe UI font).

On smaller screens, the input extends the full width, and the button appears below the input with a margin. CSS flex does not work well with the current style for narrower screens.

#4 in reply to: ↑ 3 @mukesh27
5 weeks ago

  • Keywords close added

Replying to sabernhardt:

On smaller screens, the input extends the full width, and the button appears below the input with a margin. CSS flex does not work well with the current style for narrower screens.

Agree with @sabernhardt.

@sabernhardt
5 weeks ago

uses flex when tags box is in narrow column, switching to block on smaller screens

#5 @sabernhardt
5 weeks ago

I meant that flex would not work well in all situations. It still could have something like 64088.diff.

Note: See TracTickets for help on using tickets.