From 10b2a5fffa6de91c93e9b34b877ddc7358f5940d Mon Sep 17 00:00:00 2001
From: Nicolas Vengeon <nicolas.vengeon@savoirfairelinux.com>
Date: Tue, 27 Dec 2022 13:41:35 -0500
Subject: [PATCH] location sharing: minor fonts changes

- text label font-sixe from 20 to 15
- text label length from 10 to 20

Change-Id: Ibcfc6f3dee298aaa614dc3bd0b0ce653c88496ac
---
 src/app/positionmanager.cpp  | 2 +-
 src/app/webengine/map/map.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/positionmanager.cpp b/src/app/positionmanager.cpp
index b9d97f08e..df5d52659 100644
--- a/src/app/positionmanager.cpp
+++ b/src/app/positionmanager.cpp
@@ -486,7 +486,7 @@ PositionManager::addPositionToMap(PositionKey key, QVariantMap position)
         bestName = accountInfo.contactModel->bestNameForContact(uri);
 
     QString shorterAuthorName = bestName;
-    shorterAuthorName.truncate(10);
+    shorterAuthorName.truncate(20);
     if (bestName != shorterAuthorName) {
         shorterAuthorName = shorterAuthorName + "…";
     }
diff --git a/src/app/webengine/map/map.js b/src/app/webengine/map/map.js
index 144a6cbb8..c7ddca89c 100644
--- a/src/app/webengine/map/map.js
+++ b/src/app/webengine/map/map.js
@@ -97,7 +97,7 @@ function setSource (coordos, avatar, authorName) {
     textLabel.setStyle(new ol.style.Style({
       text: new ol.style.Text({
         text: textLabel.get('text'),
-        font: '20px Arial',
+        font: '15px Arial',
         fill: new ol.style.Fill({
           color: 'black'
         }),
-- 
GitLab