mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Add mobile-friendly emoji picker mode
This also fixes some wacky indentations.
This commit is contained in:
parent
bef2216ad3
commit
f8392b8e45
1 changed files with 9 additions and 4 deletions
|
@ -25,6 +25,9 @@ Menu {
|
||||||
function show(showAt, callback) {
|
function show(showAt, callback) {
|
||||||
console.debug("Showing emojiPicker");
|
console.debug("Showing emojiPicker");
|
||||||
emojiPopup.callback = callback;
|
emojiPopup.callback = callback;
|
||||||
|
if (Settings.mobileMode)
|
||||||
|
popup(0, timelineRoot.height - height, null);
|
||||||
|
else
|
||||||
popup(showAt ? showAt : null);
|
popup(showAt ? showAt : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,9 +38,10 @@ Menu {
|
||||||
modal: true
|
modal: true
|
||||||
focus: true
|
focus: true
|
||||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
||||||
//height: columnView.implicitHeight + 4
|
|
||||||
//width: columnView.implicitWidth
|
width: Settings.mobileMode ? timelineRoot.width : 7 * 52 + 20
|
||||||
width: 7 * 52 + 20
|
x: Settings.mobileMode ? 0 : undefined
|
||||||
|
y: Settings.mobileMode ? timelineRoot.height - height : undefined
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: Nheko.colors.window
|
color: Nheko.colors.window
|
||||||
|
@ -125,6 +129,7 @@ Menu {
|
||||||
|
|
||||||
Layout.preferredHeight: cellHeight * 5
|
Layout.preferredHeight: cellHeight * 5
|
||||||
Layout.preferredWidth: 7 * 52 + 20
|
Layout.preferredWidth: 7 * 52 + 20
|
||||||
|
Layout.fillWidth: true
|
||||||
Layout.leftMargin: 4
|
Layout.leftMargin: 4
|
||||||
cellWidth: 52
|
cellWidth: 52
|
||||||
cellHeight: 52
|
cellHeight: 52
|
||||||
|
|
Loading…
Reference in a new issue