Repository navigation
Optimize the views for phones - #116
Merged
Merged
Conversation
On narrow screens (up to 600px), the lists leave out the columns which say little there (class "wideonly"): the author and version in the history of a page (the page of a version has them), the size of pages and files, and how to refer to an uploaded file. The list of all pages shows each page in two lines: the name, then the date and the icons, which don't fit next to it. The title bar and the toolbar wrap as a whole: the icons of a page stay together, and the search box takes the space which the icons leave. On touch screens, the icons of the bars and the lists are larger and have room around them to tap them (about 35px), and form fields have text of at least 16px, as iOS zooms into smaller text when a field gets the focus. Table cells break long words only where they don't fit (overflow-wrap: anywhere instead of word-break: break-all), so page names are no longer broken in the middle of words. Wide screens look as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFJFMPuuJS5KWXNTediQpN
The title bar of phones was two lines (title and date, then the icons of the page) above the toolbar: 113px of the screen. It is one line now, the title (cut off with "…" if it is too long) above the date in small text, and the icons next to them; the bars have less padding. Both bars take 75px. While the text of the editor has the focus on a phone (touch screen up to 600px wide, or less than 500px high, as with the on-screen keyboard), the title bar and the toolbar are hidden, which almost doubles the height of the text with the keyboard open (202px instead of 110px of 420px). The buttons of the formatting toolbar keep the focus in the text, and Save stays where it is when the bars come back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFJFMPuuJS5KWXNTediQpN
…lbar "Insert text from file…" was a wide text button below the text, which made the row of buttons wrap on phones (Preview on a second line). It is now an icon of the formatting toolbar, after the one to upload a file, like the other ways to insert something; the file field goes with it. The icon is new in webicons/ (insert-file: a page with an arrow into it, drawn like new.svg; check.js and preview.html updated). The text of the old button is no longer used (removed from de.php). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFJFMPuuJS5KWXNTediQpN
The button which links to a page of the wiki showed "[[ ]]" in bold Courier, wider than the other buttons. It now has the chain (link.svg), the usual icon for links. The button of Ctrl+K, which links to an address ([text](url)), had the chain before; it gets the globe (internet.svg) instead, which marks links to addresses in the pages, so that the two buttons side by side can be told apart. The style of text labels in the toolbar is no longer used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFJFMPuuJS5KWXNTediQpN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes on phones
Narrow screens (≤ 600px)
wideonly). The page of a version still shows both, in its banner.main.Touch screens (
pointer: coarse)Editor, all screens
webicons/:insert-file, a page with an arrow pointing into it, drawn likenew.svg. It is also proposed upstream in Add the insert-file icon webicons#4.de.php.link.svg).[text](url)), had the chain before. It now has the globe (internet.svg), the mark that pages already show after links to addresses, so the two buttons side by side look different.Everywhere: table cells use
overflow-wrap: anywhereinstead ofword-break: break-all. Words now break only where they don't fit, so a name like "Meeting Notes 2026-11-17" no longer splits into "202 / 6-11-17".Apart from the editor's buttons, wide screens look the same as before. I compared screenshots of every view at 1280px; the only differences were timestamps.
Code
sortableHeadings()andtable-head.phptake an optional class for each column.all-pages.php(pagelist,pagenameandmodifiedclasses),upload-list.php,history.php,page.php(pageactionsandsearchformclasses),format-bar.phpandeditor.php(the import and link buttons).index.css: a new section "Small screens and touch screens" at the end.Tests
tests/Browser/mobile.spec.jschecks:Except for the no-overflow checks, these tests fail without the CSS.
editor-import.spec.js:FormatBarTestchecks the icons of both link buttons and counts 18 buttons.toolbar.spec.jschecks the contrast of both link icons in the dark scheme.FormsTestchecks where the import button is and that the old text button is gone.ListViewsTestchecks the column classes, andPageFrameTestchecks the icon group in the title bar.GitHistoryTest's pattern for the history rows now allows the new cell classes.vendor/bin/phpunit: 2277 tests pass (143 skipped: the server/container tests). Playwright: 274 passed, 9 skipped.history.spec.js, and the next full run passed. That test reads the next page right after clicking a link, without waiting for it to load. Separately, onmain, a new page whose text equals another page's shows its creation as "not changed (renamed)", becausegit log --followpairs the identical files.Generated by Claude Code