Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile): show a keyboard over a chevron on the hide button

Elian Doran02ff4edb5c62
diff --git a/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.css b/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.css
index 08769ee6f7..c4425bbe87 100644
--- a/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.css
+++ b/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.css
@@ -9,9 +9,21 @@ body.mobile :is(.hide-keyboard-button, .hide-keyboard-action) {
--icon-button-size: var(--hide-keyboard-button-size);
width: var(--hide-keyboard-button-size);
height: var(--hide-keyboard-button-size);
+ --icon-button-icon-ratio: 0.6;
display: flex;
+ flex-direction: column;
align-items: center;
justify-content: center;
+
+ &::after {
+ content: "\ea4a"; /* bx-chevron-down, from boxicons.css */
+ margin-top: -0.65em;
+ margin-bottom: -0.3em;
+ font-family: boxicons;
+ font-size: calc(var(--icon-button-size) * 0.4);
+ font-weight: normal;
+ line-height: 1;
+ }
}
}
diff --git a/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.tsx b/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.tsx
index e1290710c2..cfed1a616a 100644
--- a/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.tsx
+++ b/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.tsx
@@ -32,7 +32,7 @@ export function HideKeyboardAction({ className, containerRef }: {
// send it back into the dialog and bring the keyboard up again.
<div ref={containerRef} className={className} onMouseDown={(e) => e.preventDefault()}>
<ActionButton
- icon="bx bx-chevron-down"
+ icon="bx bxs-keyboard"
text={t("hide_keyboard_button.title")}
noTooltipOnTouch
onClick={() => {
diff --git a/docs/User Guide/User Guide/Installation & Setup/Mobile Frontend.md b/docs/User Guide/User Guide/Installation & Setup/Mobile Frontend.md
index 582eac4d34..c63cc3bd17 100644
--- a/docs/User Guide/User Guide/Installation & Setup/Mobile Frontend.md
+++ b/docs/User Guide/User Guide/Installation & Setup/Mobile Frontend.md
@@ -21,7 +21,7 @@ Here is a non-exhaustive list of differences between the desktop version and the
* The launch bar uses a different configuration for icons than the desktop version. See the dedicated page for more information on how to configure it.
* Most of the note-related actions are grouped in the horizontal dots icon on the top-right of the note.
* In a text note, the formatting toolbar sits at the bottom of the screen as a single row that scrolls sideways. It is shown only while you are editing the text, and hides when you hide the keyboard or move to another field, such as the note title. It starts with _Undo_ and _Redo_, since the on-screen keyboard has no keys for them.
-* While the on-screen keyboard is open, a <span class="tn-icon bx bx-chevron-down"></span> button in the bottom-right corner, just above the keyboard, hides it. In a text note, the button is at the right end of the formatting toolbar. This works in every note type and in every text field, and is the only way to hide the keyboard in the iOS app, where the keyboard has no _Done_ button.
+* While the on-screen keyboard is open, a <span class="tn-icon bx bxs-keyboard"></span> button in the bottom-right corner, just above the keyboard, hides it. In a text note, the button is at the right end of the formatting toolbar. This works in every note type and in every text field, and is the only way to hide the keyboard in the iOS app, where the keyboard has no _Done_ button.
* The <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Tabs.md">Tabs</a> are grouped under a tab switcher in the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>, where the tabs are displayed in a full-screen grid with preview for easy switching, as well as additional options such as reopening closed tabs.
* Since v0.100.0, <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Split%20View.md">Split View</a> can also be used in mobile view, but with a maximum of two panes at once. The splits are displayed vertically instead of horizontally.