fix(UX): improvements on desktop screen
This commit is contained in:
parent
c8b344b3ca
commit
787ec85905
2 changed files with 28 additions and 4 deletions
|
|
@ -203,4 +203,24 @@
|
|||
|
||||
}
|
||||
}
|
||||
}
|
||||
.page-indicator-container{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
margin-top: 25px;
|
||||
}
|
||||
.active-page{
|
||||
background: black !important;
|
||||
}
|
||||
.page-indicator{
|
||||
background: var(--gray-300);
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
|
||||
}
|
||||
.no-apps-message{
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 1 / -1;
|
||||
}
|
||||
|
|
@ -44,10 +44,10 @@ function get_route(desktop_icon) {
|
|||
type: desktop_icon.type,
|
||||
link: frappe.router.slug(desktop_icon.workspace),
|
||||
};
|
||||
} else if (desktop_icon.type == "List") {
|
||||
} else if (desktop_icon.type == "DocType") {
|
||||
item = {
|
||||
type: desktop_icon.type,
|
||||
link: desktop_icon.__doctype,
|
||||
name: desktop_icon.link_to,
|
||||
};
|
||||
}
|
||||
route = frappe.utils.generate_route(item);
|
||||
|
|
@ -192,8 +192,12 @@ class DesktopIconGrid {
|
|||
}
|
||||
});
|
||||
}
|
||||
this.add_page_indicators();
|
||||
this.setup_pagination();
|
||||
if (!this.in_folder) {
|
||||
this.add_page_indicators();
|
||||
this.setup_pagination();
|
||||
} else {
|
||||
this.grids[0] && this.grids[0].css("display", "grid");
|
||||
}
|
||||
}
|
||||
add_page_indicators(tempplate) {
|
||||
this.page_indicators = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue