🌐 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
Next Next commit
center web app content, remove dead code, left nav boarder radius on …
…button click
  • Loading branch information
chillenberger committed Oct 11, 2023
commit 8a11d6c58690585bd3939a3390cfe617ed8a8aef
2 changes: 1 addition & 1 deletion pgml-dashboard/src/components/navbar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use pgml_components::component;
use sailfish::TemplateOnce;

#[derive(TemplateOnce)]
#[template(path = "layout/nav/top.html")]
#[template(path = "navbar/template.html")]
pub struct Navbar {
pub current_user: Option<models::User>,
pub standalone_dashboard: bool,
Expand Down
1 change: 0 additions & 1 deletion pgml-dashboard/src/components/navbar/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<div class="container gap-4">
<div class="controls">
<%+ PostgresLogo::new("/") %>

<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down
2 changes: 1 addition & 1 deletion pgml-dashboard/src/components/navbar_web_app/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<!-- Button to toggle collapsed menu for less than lg screens -->
<button class="navbar-toggler collapsed topnav-controlls" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<% include!("../../../templates/components/profile_icon.html"); %>
<%+ ProfileIcon::new() %>
</button>
</div>

Expand Down
1 change: 1 addition & 0 deletions pgml-dashboard/static/css/scss/components/_navs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
&:active, :focus, :target, .active {
background-color: #{$neon-tint-100};
color: #{$gray-100};
border-radius: calc($border-radius / 2);

span {
color: #{$gray-100};
Expand Down
2 changes: 1 addition & 1 deletion pgml-dashboard/static/css/scss/layout/_containers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@

.webapp-content-max-width-container {
max-width: $webapp-content-max-width;
margin-left: 0px;
margin: 0px auto;
min-height: calc(100vh - $navbar-height - $breadcrumb-height - 1px);
}
39 changes: 0 additions & 39 deletions pgml-dashboard/templates/layout/nav/left_web_app.html

This file was deleted.

72 changes: 0 additions & 72 deletions pgml-dashboard/templates/layout/nav/top.html

This file was deleted.

161 changes: 0 additions & 161 deletions pgml-dashboard/templates/layout/nav/top_web_app.html

This file was deleted.