Tablet layout for the mobile frontend: labelled navigation rail, docked side panels, touch toolbar for canvas notes #12769
Replies: 3 comments 4 replies
|
The theme and the widget are now in a repository, for anyone who wants to try them on a tablet: https://github.com/6801318d8d/trilium-tablet-ui Installing takes two code notes:
Since the feature request it has gained a few things for canvas notes: rows of your own Stroke and Background colours, a pen-pressure slider, and Excalidraw's "More tools" menu now opens above the docked tool bar instead of off-screen. There are also two touch fixes: no grey hover state is left on the last button touched, and pen taps that the WebView ends without a click are completed. Feedback and bug reports are welcome as issues in that repository. The questions above, about which parts would fit in Trilium itself, still stand. |
|
Hi, I've moved it from a feature request to a "Show & tell" discussion because you already have something functional and ready to use. I like some ideas such as the repositioning of the launch bar to the left. Some redesigns such as the right-docked menu are interesting, but we'd have to double-check if they match the UX of Trilium. Nevertheless, I agree that the tablet view needs a bit of a facelift but I'd prefer to handle it on our side. |
|
Abandoned in favor of new Handwriting note |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe feature
On an 11-inch Android tablet (1385x866 dp in landscape) the official app and the mobile web frontend use the phone layout stretched to a large screen. In daily use these parts get in the way:
I have a working version of the layout below as a custom theme (
#appCss, about 760 lines) plus one#widgetscript (about 440 lines) and a script launcher. It runs on the nightly Android app and in the browser. Screenshots, before and after:What it changes:
noteTitleStylecompact option) and a reading column of about 720 px for text notes.Additional Information
I would like to know which of these parts fit Trilium before going further. A possible order, each step usable on its own:
The draft pull request #12610 implements phase 1. It is a starting point for the discussion; I will rework or close it depending on your answer.
Questions for the maintainers:
The canvas widget keeps the Excalidraw API private, so the stroke-width slider reaches the Excalidraw instance through a workaround; in core it would use the API directly. The undo history is still shared between canvas notes: on a freshly opened canvas the undo button is active and pressing it does nothing. I can open a separate issue for that.
Related: #12233 (sidebar toggle on tablets), #11106 (note menu not scrollable on an Android tablet), #9353 (zoom with a pen in canvas notes), #1918 (Trilium on iPadOS).
All reactions