8000 Use $sidebar-with to calculate right-margin of #main_content (#5887) · activeadmin/activeadmin@3934c4f · GitHub
[go: up one dir, main page]

Skip to content

Commit 3934c4f

Browse files
guigsjavierjulio
authored andcommitted
Use $sidebar-with to calculate right-margin of #main_content (#5887)
* Use $sidebar-with to calculate right-margin of #main_content * Add parenthesis to improve readability Co-Authored-By: Javier Julio <javierjulio@icloud.com> * Add changelog entry for #5887 * Add definition of user and PR to changelog
1 parent b4bfe8e commit 3934c4f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Fix error when routing with array containing symbol. [#5870] by [@jwesorick]
99
* Fix error when there is a model named `Tag` and `meta_tags` have been configured. [#5893] by [@micred], [@FabioRos] and [@deivid-rodriguez]
1010
* Allow specifying custom input_html for DateRangeInput [#5867] by [@mirelon]
11+
* Adjust `#main_content` right margin to take into account possible custom values of `$sidebar-width` and `$section-padding` [#5887] by [@guigs]
1112

1213
### Removals
1314

@@ -532,6 +533,7 @@ Please check [0-6-stable] for previous changes.
532533
[#5870]: https://github.com/activeadmin/activeadmin/pull/5870
533534
[#5893]: https://github.com/activeadmin/activeadmin/pull/5893
534535
[#5867]: https://github.com/activeadmin/activeadmin/pull/5867
536+
[#5887]: https://github.com/activeadmin/activeadmin/pull/5887
535537

536538
[@5t111111]: https://github.com/5t111111
537539
[@aarek]: https://github.com/aarek
@@ -562,6 +564,7 @@ Please check [0-6-stable] for previous changes.
562564
[@Fivell]: https://github.com/Fivell
563565
[@glebtv]: https://github.com/glebtv
564566
[@gonzedge]: https://github.com/gonzedge
567+
[@guigs]: https://github.com/guigs
565568
[@HappyKadaver]: https://github.com/HappyKadaver
566569
[@innparusu95]: https://github.com/innparusu95
567570
[@ionut998]: https://github.com/ionut998

app/assets/stylesheets/active_admin/structure/_main_structure.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
width: 100%;
1616

1717
#main_content{
18-
margin-right: 300px;
18+
margin-right: $sidebar-width + ($section-padding * 2);
1919
}
2020
}
2121

0 commit comments

Comments
 (0)
0