Skip to content

Commit

Permalink
fix: fix scroll and collapse of sidebar menu groups
Browse files Browse the repository at this point in the history
  • Loading branch information
AyshaHakeem committed Sep 11, 2024
1 parent 5809998 commit e6e0bc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
8 changes: 4 additions & 4 deletions wiki/public/js/render_wiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function setSortable() {
pull: ["qux"],
},
swapThreshold: 0.7,
filter: ".disabled",
filter: ["draggable", "true"],
onEnd: function (e) {
frappe.utils.debounce(() => {
frappe.call({
Expand Down Expand Up @@ -48,7 +48,7 @@ function toggleEditor() {
$(".wiki-footer").toggleClass("hide");
$(".page-toc").toggleClass("hide");
$(".remove-sidebar-item").toggleClass("hide");
$(".sidebar-item, .sidebar-group").toggleClass("disabled");
$(".sidebar-item, .sidebar-group").attr("draggable", "true");
$(".drop-icon").toggleClass("hide");
$(".add-sidebar-page").toggleClass("hide");
$(".add-sidebar-group, .sidebar-view-mode-btn").toggleClass("hide");
Expand Down Expand Up @@ -237,7 +237,7 @@ window.RenderWiki = class RenderWiki extends Wiki {
}

set_edit_mode() {
$(".sidebar-item, .sidebar-group").addClass("disabled");
// $(".sidebar-item, .sidebar-group").addClass("disxabled");

$(".web-sidebar ul").each(setSortable);

Expand All @@ -264,7 +264,7 @@ window.RenderWiki = class RenderWiki extends Wiki {

// switch to edit mode
toggleEditor();
$("html").css({ overflow: "hidden" });
// $("html").css({ overflow: "auto" });

if (!urlParams.get("editWiki")) set_search_params("editWiki", "1");
}
Expand Down
18 changes: 0 additions & 18 deletions wiki/public/scss/wiki.scss
Original file line number Diff line number Diff line change
Expand Up @@ -889,24 +889,6 @@ h6:hover .feather-link {
}
}

.menu {
cursor: pointer;
font-size: 24px;

.dots {
display: flex;
justify-content: space-around;
width: 16px;

.dot {
background-color: #333;
border-radius: 50%;
width: 6px;
height: 6px;
}
}
}

.wiki-options:hover {
background-color: var(--gray-200);
border-radius: 5px;
Expand Down

0 comments on commit e6e0bc3

Please sign in to comment.