Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panel view enhancements #40

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions core/smartphone.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down Expand Up @@ -210,10 +213,6 @@ body {
width: 100%;
}

#playerstat {
margin-top: 5px;
}

#portaldetails {
min-height: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down