diff --git a/core/smartphone.css b/core/smartphone.css index ed81423ab..a98f996a0 100644 --- a/core/smartphone.css +++ b/core/smartphone.css @@ -101,10 +101,12 @@ body { display: flex; justify-content: space-between; flex-wrap: wrap; + padding: 5px; } #playerstat h2 #name { - width: initial; + display: flex; + align-items: center; } #playerstat h2 #name .playername, @@ -120,6 +122,7 @@ body { #name #signout { /* no hover, always show signout button */ display: inline-block; position: initial; + margin-left: 4px; } #sidebar, #chatcontrols, #chat, #chatinput { @@ -210,10 +213,6 @@ body { width: 100%; } -#playerstat { - margin-top: 5px; -} - #portaldetails { min-height: 0; } diff --git a/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_Mobile.java b/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_Mobile.java index 87dd95620..8767b838d 100644 --- a/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_Mobile.java +++ b/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_Mobile.java @@ -360,7 +360,7 @@ public void onSharedPreferenceChanged(final SharedPreferences sharedPreferences, final boolean enablePopup = mSharedPrefs.getBoolean("pref_popup", false); mIitcWebView.setSupportPopup(enablePopup); } else if (key.equals("pref_webview_zoom")) { - mIitcWebView.setWebViewZoom(Integer.parseInt(mSharedPrefs.getString("pref_webview_zoom", "-1"))); + mIitcWebView.setWebViewZoom(mSharedPrefs.getInt("pref_webview_zoom", -1)); } mReloadNeeded = true; diff --git a/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebView.java b/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebView.java index 875e1a00f..0f00253cc 100644 --- a/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebView.java +++ b/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebView.java @@ -61,7 +61,7 @@ private void iitc_init(final Context c) { mSettings.setAppCachePath(getContext().getCacheDir().getAbsolutePath()); setSupportPopup(mSharedPrefs.getBoolean("pref_popup", false)); - setWebViewZoom(Integer.parseInt(mSharedPrefs.getString("pref_webview_zoom", "-1"))); + setWebViewZoom(mSharedPrefs.getInt("pref_webview_zoom", -1)); // enable mixed content (http on https...needed for some map tiles) mode if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {