Skip to content

Commit 9cd249e

Browse files
authored
Merge pull request #2532 from gnestor/issue-1129
Re: Adjust positioning of filename in save widget
2 parents 1e18e05 + 945a973 commit 9cd249e

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

notebook/static/base/less/page.less

+9-4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ body > #header {
2727
z-index: 100;
2828

2929
#header-container {
30+
display: flex;
31+
flex-direction: row;
32+
justify-content: space-between;
33+
padding: 5px;
3034
padding-bottom: 5px;
3135
padding-top: 5px;
3236
.border-box-sizing();
@@ -57,9 +61,6 @@ body > #header {
5761
padding-left: 0px;
5862
padding-top: (@navbar-height - @logo_height) / 2;
5963
padding-bottom: (@navbar-height - @logo_height) / 2;
60-
@media (max-width: @screen-sm-max){
61-
margin-left: 10px;
62-
}
6364
}
6465

6566

@@ -99,8 +100,12 @@ input.ui-button {
99100
padding: 0.3em 0.9em;
100101
}
101102

103+
span#kernel_logo_widget {
104+
margin: 0 10px;
105+
}
106+
102107
span#login_widget {
103-
float: right;
108+
104109
}
105110

106111
span#login_widget > .button,

notebook/static/notebook/less/kernelselector.less

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#kernel_logo_widget {
2-
.pull-right();
3-
42
.current_kernel_logo {
53
display: none;
64
.navbar-vertical-align(32px);

notebook/static/notebook/less/savewidget.less

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
span.save_widget {
2-
margin-top: 6px;
3-
max-width: 100%;
2+
height: 30px;
3+
margin-top: 4px;
44
display: flex;
5+
justify-content: flex-start;
6+
align-items: baseline;
7+
width: 50%;
8+
flex: 1;
59

610
span.filename {
7-
height: 1em;
11+
height: 100%;
812
line-height: 1em;
9-
padding: 3px;
1013
margin-left: @padding-large-horizontal;
1114
border: none;
1215
font-size: 146.5%;

notebook/templates/notebook.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{% block headercontainer %}
3939

4040

41-
<span id="save_widget" class="pull-left save_widget">
41+
<span id="save_widget" class="save_widget">
4242
<span id="notebook_name" class="filename"></span>
4343
<span class="checkpoint_status"></span>
4444
<span class="autosave_status"></span>

notebook/templates/page.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
<div id="header-container" class="container">
121121
<div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="{{default_url}}" title='dashboard'>{% block logo %}<img src='{{static_url("base/images/logo.png") }}' alt='Jupyter Notebook'/>{% endblock %}</a></div>
122122

123+
{% block headercontainer %}
124+
{% endblock %}
125+
123126
{% block header_buttons %}
124127

125128
{% block login_widget %}
@@ -135,9 +138,7 @@
135138
{% endblock %}
136139

137140
{% endblock header_buttons %}
138-
139-
{% block headercontainer %}
140-
{% endblock %}
141+
141142
</div>
142143
<div class="header-bar"></div>
143144

0 commit comments

Comments
 (0)