MediaWiki talk:Filepage.css

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Line break

[edit]

{{Edit request}}

Please add the following CSS:

.filehistory td:nth-child(6) {
    word-break: break-word;
    min-width: 10em;
}

— Preceding unsigned comment added by Neveselbert (mobile) (talk • contribs) 13:01, May 4 2021 (UTC)

First, it doesn’t work for everyone—admins have an extra cell on the far left, so the comment is the seventh cell in the row, not the sixth. Maybe :last-child would work? Second, I don’t think it should be on Filepage.css—this is loaded on other wikis, but only on file pages of Commons files, not of local files, which would result in inconsistency (Commons files’ comments are broken, local files’ comments aren’t). It should be rather added to some Commons-only page, like MediaWiki:Common.css or a new gadget. —Tacsipacsi (talk) 16:33, 4 May 2021 (UTC)[reply]
Thanks for the feedback. @TheDJ: would this still work if I requested the code at MediaWiki talk:Common.css? ᴀlbanɢeller (talk) 18:05, 4 May 2021 (UTC)[reply]
@Tacsipacsi: do you think I should request the code at MediaWiki talk:Common.css or someplace else? ᴀlbanɢeller (talk) 16:00, 5 May 2021 (UTC)[reply]
@Neveselbert (mobile): That could help (although it may not be necessary, but it doesn’t hurt either). —Tacsipacsi (talk) 01:02, 6 May 2021 (UTC)[reply]