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,7 +25,10 @@ Menu {
|
|||
function show(showAt, callback) {
|
||||
console.debug("Showing emojiPicker");
|
||||
emojiPopup.callback = callback;
|
||||
popup(showAt ? showAt : null);
|
||||
if (Settings.mobileMode)
|
||||
popup(0, timelineRoot.height - height, null);
|
||||
else
|
||||
popup(showAt ? showAt : null);
|
||||
}
|
||||
|
||||
margins: 0
|
||||
|
@ -35,9 +38,10 @@ Menu {
|
|||
modal: true
|
||||
focus: true
|
||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
||||
//height: columnView.implicitHeight + 4
|
||||
//width: columnView.implicitWidth
|
||||
width: 7 * 52 + 20
|
||||
|
||||
width: Settings.mobileMode ? timelineRoot.width : 7 * 52 + 20
|
||||
x: Settings.mobileMode ? 0 : undefined
|
||||
y: Settings.mobileMode ? timelineRoot.height - height : undefined
|
||||
|
||||
Rectangle {
|
||||
color: Nheko.colors.window
|
||||
|
@ -125,6 +129,7 @@ Menu {
|
|||
|
||||
Layout.preferredHeight: cellHeight * 5
|
||||
Layout.preferredWidth: 7 * 52 + 20
|
||||
Layout.fillWidth: true
|
||||
Layout.leftMargin: 4
|
||||
cellWidth: 52
|
||||
cellHeight: 52
|
||||
|
|
Loading…
Reference in a new issue