mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-20 19:20:04 +00:00
Bug 4228: Removed unused code for mobile positioning of LoginPopup
This commit is contained in:
1 parent
51c70cc560
commit
f240c9ed21
4 files changed
+4
-17
No files matched your search
+1
-1
@@ -92,7 +92,7 @@ public class TabletAndDesktopApplicationClientFactory extends AbstractApplicatio
|
||||
|
||||
@Override
|
||||
public void onUserStatusChange(UserDTO user) {
|
||||
checkNewUserPopup(user, () -> new LoginPopup(true, () -> {
|
||||
checkNewUserPopup(user, () -> new LoginPopup(() -> {
|
||||
setUserLoginHintToStorage();
|
||||
}, () -> {
|
||||
setUserLoginHintToStorage();
|
||||
|
||||
-8
@@ -20,14 +20,6 @@
|
||||
right: calc(( 100vw - 81rem)/2) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.flyover_mobile {
|
||||
right: 0px;
|
||||
top: 70px !important;
|
||||
position: absolute;
|
||||
overflow: visible;
|
||||
z-index: 4;
|
||||
}
|
||||
.flyover_content_wrapper {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
-1
@@ -18,7 +18,6 @@ public interface UserManagementResources extends ClientBundle {
|
||||
String flyover();
|
||||
String flyover_small_hidden();
|
||||
String flyover_position_grid();
|
||||
String flyover_mobile();
|
||||
String flyover_content_wrapper();
|
||||
String flyover_content();
|
||||
String form_title();
|
||||
|
||||
+3
-7
@@ -9,15 +9,11 @@ public class LoginPopup extends PopupPanel {
|
||||
private static final LocalCss LOCAL_CSS = UserManagementResources.INSTANCE.css();
|
||||
private LoginPopupContent lpop;
|
||||
|
||||
public LoginPopup(boolean desktop, final Runnable onDismiss, final Runnable onMoreInfo) {
|
||||
public LoginPopup(final Runnable onDismiss, final Runnable onMoreInfo) {
|
||||
LOCAL_CSS.ensureInjected();
|
||||
this.addStyleName(LOCAL_CSS.flyover());
|
||||
if (desktop) {
|
||||
this.addStyleName(LOCAL_CSS.flyover_small_hidden());
|
||||
this.addStyleName(LOCAL_CSS.flyover_position_grid());
|
||||
} else {
|
||||
this.addStyleName(LOCAL_CSS.flyover_mobile());
|
||||
}
|
||||
this.addStyleName(LOCAL_CSS.flyover_small_hidden());
|
||||
this.addStyleName(LOCAL_CSS.flyover_position_grid());
|
||||
ensureDebugId("loginpopupNewUser");
|
||||
setAutoHideEnabled(true);
|
||||
lpop = new LoginPopupContent(() -> {
|
||||
|
||||
Reference in new issue
Block a user