Skip to content

Commit

Permalink
replace 'pathbaritem' css class with bs5 'breadcrumb-item' css class.…
Browse files Browse the repository at this point in the history
… Remove unnecessary border from referencebrowser.
  • Loading branch information
lenadax committed Feb 3, 2025
1 parent 37e9175 commit 76b289f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ body {
#referencebrowser {
// remove modal padding visually
border-bottom: 0;
border-left: 0;
border-right: 0;
border-radius: 0;
left: calc(-1 * var(--bs-modal-padding));
width: calc(100% + var(--bs-modal-padding) * 2);
Expand Down
2 changes: 2 additions & 0 deletions src/cone/app/browser/static/cone/cone.app.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ body {

#referencebrowser {
border-bottom: 0;
border-left: 0;
border-right: 0;
border-radius: 0;
left: calc(-1 * var(--bs-modal-padding));
width: calc(100% + var(--bs-modal-padding) * 2);
Expand Down
2 changes: 1 addition & 1 deletion src/cone/app/browser/static/cone/cone.app.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cone/app/browser/templates/referencebrowser_pathbar.pt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ajax:bind="contextchanged"
ajax:action="referencebrowser_pathbar:#referencebrowser_pathbar:inner">

<li class="pathbaritem"
<li class="breadcrumb-item"
tal:repeat="item context.items">

<a href="${item['url']}"
Expand Down
2 changes: 1 addition & 1 deletion src/cone/app/tests/test_browser_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def test_pathbar(self):

# Unauthorized
res = render_tile(root, request, 'pathbar')
self.assertFalse(res.find('pathbaritem') != -1)
self.assertFalse(res.find('breadcrumb-item') != -1)

# Authorized
with self.layer.authenticated('max'):
Expand Down
Loading

0 comments on commit 76b289f

Please sign in to comment.