Skip to content

Commit 5598a80

Browse files
committed
fix/Prevent fixed div from being too wide
1 parent 14b113c commit 5598a80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/assets/stylesheets/_sidebar.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
.sidebar {
44
&--wrapper {
5-
position: fixed;
65
z-index: 1;
76
margin-right: 15px;
87
}

app/views/layouts/application.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@
3838

3939
<div id="app">
4040
<div style="display: flex;">
41-
<div style="flex: 1; margin-right: 16px;">
41+
<div style="width: 25%;">
4242
<%= render 'shared/sidebar' %>
4343
</div>
44-
<div style="flex: 4; min-width: 300px;">
44+
<%# <div style="flex: 1; flex-basis: 25%; max-width: 25%;"></div> %>
45+
<div style="flex: 4; flex-basis: 75%;">
4546
<%= yield %>
4647
</div>
4748
</div>

0 commit comments

Comments
 (0)