DylanVanAssche / harbour-sailfinder

Sailfinder, the unofficial Tinder client for Jolla's Sailfish OS
https://sailfinder.dylanvanassche.be
GNU General Public License v3.0
18 stars 4 forks source link

Message text not always completely visible #201

Open DylanVanAssche opened 6 years ago

DylanVanAssche commented 6 years ago
  1. What happens:

    • Message text not always completely visible
    • Copying the text is OK
    • Probably something in the QML code that prevents the message box to expand
  2. What was expected:

    • Message box is expanded and shows the complete message
  3. How to reproduce:

    1. Receive a message with a lot of characters
    2. Read it
    3. Only a couple of lines are visible
  4. Environment:

    • Sailfish OS version: 2.2.0.29
    • Sailfish OS hardware: Xperia X, Jolla 1
Sikarjan commented 5 years ago

I fixed this issue by changing the QML component from Label to Text and formatting the text as RichText. Then I put the message itself inside a <p></p> tag. This solves the clipping but the messages overlay the header now. So I am not sure if this is a viable solution for you.

In the code I also saw that there should be checkmarks when a message is read. I never had those and they do not appear with the above solution.

DylanVanAssche commented 5 years ago

Have you tried to set the clip: true in the QML Text object?

Sikarjan commented 5 years ago

I just did my first commit on a clean copy. I hope that worked.

If there is a possibility to copy the login id so that on a second run I do net need to verify myself again, please explain how I could do that. It would make playing around with the code much easier for me.

DylanVanAssche commented 5 years ago

If you use a FB login, you can set that page as default, your credentials are remembered by FB. In case of SMS, I don't have a fast solution. You could print the auth token (generated from the auth request with the SMS token as payload) and hardcode it. Disable the login page and you should be good to go.