You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Last Modified" column takes up a lot of horizontal space in a narrow container. In English, a relative date like "11 months ago" is likely longer than the filename it describes:
The absolute date appears on hover, in a tooltip.
Proposed Solution
We use an Intl.RelativeTimeFormat object to make human-readable dates in an internationalizable format. When changing that to use the "short" format, units like "months" shorten, but "days" does not, and "ago" remains, even though we can be reasonably certain that almost all files will have been created in the past.
As a more extreme alternative, we could reduce this to "#u", with a number and a very short unit. This pattern is already used by mobile apps and mobile web sites, and may require additional manual internationalization. We can also shorten "Last Modified" to "Mod", to allow for the column to be shortened.
Note that Asian languages already have single characters for most time units,
In the rare case that a file's time stamp in the future, we can put a + before the number; the normal expectation is that a date is in the past.
Additional context
See also #14237, #3875, and #8497 for other issues about columns in the filebrowser.
The text was updated successfully, but these errors were encountered:
Problem
The "Last Modified" column takes up a lot of horizontal space in a narrow container. In English, a relative date like "11 months ago" is likely longer than the filename it describes:
The absolute date appears on hover, in a tooltip.
Proposed Solution
We use an Intl.RelativeTimeFormat object to make human-readable dates in an internationalizable format. When changing that to use the "short" format, units like "months" shorten, but "days" does not, and "ago" remains, even though we can be reasonably certain that almost all files will have been created in the past.
As a more extreme alternative, we could reduce this to "#u", with a number and a very short unit. This pattern is already used by mobile apps and mobile web sites, and may require additional manual internationalization. We can also shorten "Last Modified" to "Mod", to allow for the column to be shortened.
Note that Asian languages already have single characters for most time units,
In the rare case that a file's time stamp in the future, we can put a
+
before the number; the normal expectation is that a date is in the past.Additional context
See also #14237, #3875, and #8497 for other issues about columns in the filebrowser.
The text was updated successfully, but these errors were encountered: