Prevent OL from loading webfonts for our default font

* Fixes flash of bold text on app launch
* Fixes Noto Sans being used instead of system font where not available
This commit is contained in:
2026-04-02 11:42:19 +04:00
parent 9d06898b15
commit 2a3ad26eb9
3 changed files with 8 additions and 4 deletions

View File

@@ -284,7 +284,9 @@ export default class MapComponent extends Component {
const initialCenter = toLonLat(view.getCenter());
this.mapUi.updateCenter(initialCenter[1], initialCenter[0]);
apply(this.mapInstance, 'https://tiles.openfreemap.org/styles/liberty');
apply(this.mapInstance, 'https://tiles.openfreemap.org/styles/liberty', {
webfonts: 'data:text/css,',
});
this.searchOverlayElement = document.createElement('div');
this.searchOverlayElement.className = 'search-pulse';

View File

@@ -55,7 +55,7 @@ export default class UserMenuComponent extends Component {
</div>
<div class="account-status">
{{#if @storage.connected}}
{{@storage.userAddress}}
<strong>{{@storage.userAddress}}</strong>
{{else}}
Not connected
{{/if}}
@@ -84,7 +84,7 @@ export default class UserMenuComponent extends Component {
</div>
<div class="account-status">
{{#if this.osmAuth.isConnected}}
{{this.osmAuth.userDisplayName}}
<strong>{{this.osmAuth.userDisplayName}}</strong>
{{else}}
Not connected
{{/if}}