IDEMPIERE-4482 Mobile Improvements (#299)
make toolbar and message overflow link easier to click
This commit is contained in:
parent
91c72fd978
commit
1addf52f7e
|
@ -1140,7 +1140,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
||||||
if (overflows.size() > 0) {
|
if (overflows.size() > 0) {
|
||||||
overflowButton = new A();
|
overflowButton = new A();
|
||||||
overflowButton.setIconSclass("z-icon-ShowMore");
|
overflowButton.setIconSclass("z-icon-ShowMore");
|
||||||
overflowButton.setStyle("position: absolute; right: 8px; font-weight: 500; color: #333");
|
overflowButton.setSclass("font-icon-toolbar-button toolbar-button mobile-overflow-link");
|
||||||
appendChild(overflowButton);
|
appendChild(overflowButton);
|
||||||
overflowPopup = new Popup();
|
overflowPopup = new Popup();
|
||||||
overflowPopup.addEventListener(Events.ON_OPEN, (OpenEvent oe) -> {
|
overflowPopup.addEventListener(Events.ON_OPEN, (OpenEvent oe) -> {
|
||||||
|
|
|
@ -198,7 +198,7 @@ public class StatusBar extends Panel implements EventListener<Event>
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Label label = new Label("...");
|
Label label = new Label("...");
|
||||||
label.setStyle("cursor: pointer");
|
label.setSclass("mobile-overflow-link");
|
||||||
messageContainer.appendChild(label);
|
messageContainer.appendChild(label);
|
||||||
label.addEventListener(Events.ON_CLICK, this);
|
label.addEventListener(Events.ON_CLICK, this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -347,3 +347,19 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobile-overflow-link {
|
||||||
|
font-weight: 700;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: background 0.8s;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
|
.mobile-overflow-link:active {
|
||||||
|
background-color: #ddd;
|
||||||
|
background-size: 80%;
|
||||||
|
transition: background 0s;
|
||||||
|
}
|
||||||
|
.adwindow-status-docstatus .z-label.mobile-overflow-link {
|
||||||
|
width: 18px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue