🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix docs left nav
  • Loading branch information
chillenberger committed Jul 19, 2024
commit 2358a9b25c653fdfd75cebdd12147b394120a8d8
1 change: 1 addition & 0 deletions pgml-cms/pgml-cms
4 changes: 2 additions & 2 deletions pgml-dashboard/src/api/chatbot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ impl<'r> FromRequest<'r> for User {
.map(|c| User {
chatbot_session_id: c.value().to_string(),
})
.or_forward(Status::Unauthorized)
.or_forward(Status::Unauthorized)
}
}
}

#[derive(Serialize, Deserialize, PartialEq, Eq)]
enum ChatRole {
Expand Down
4 changes: 4 additions & 0 deletions pgml-dashboard/src/components/cms/index_link/index_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ div[data-controller="cms-index-link"] {
text-decoration: underline;
text-underline-offset: 2px;
}

.material-symbols-outlined {
user-select: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ div[data-controller="navigation-left-nav-docs"] {
box-sizing: border-box;
width: 100%;
}

.doc-leftnav-inner {
width: 100%;
}

.show-scroll {
padding-right: 25px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"guides" => "menu_book",
"resources" => "school",
"introduction" => "list_alt",
"cloud" => "cloud",
_ => "dashboard",
}
}
Expand All @@ -26,7 +27,7 @@
<% if !mobile { %>
<div class="doc-leftnav-container" id="doc-leftnav-container" data-controller="navigation-left-nav-docs" data-turbo-permanent>
<nav class="doc-leftnav" data-scroll="0" data-navigation-left-nav-docs-target="leftNav">
<div class="d-flex flex-column justify-content-between">
<div class="d-flex flex-column justify-content-between doc-leftnav-inner">
<div class="d-xl-flex flex-column py-4">
<div class="pt-2 ps-2 d-flex flex-column gap-4_5">
<% for doc_link in index.clone().into_iter() { %>
Expand Down
3 changes: 3 additions & 0 deletions static/css/modules.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file is automatically generated.
// There is no need to edit it manually.