mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
remove kernel logo text placeholder
This commit is contained in:
parent
da88bff678
commit
9f9714e11f
@ -127,7 +127,6 @@ define([
|
||||
that.current_selection = data.name;
|
||||
$("#kernel_indicator").find('.kernel_indicator_name').text(data.display_name);
|
||||
that.element.find("img.current_kernel_logo").attr("src", that.notebook.base_url + "kernelspecs/" + data.name + "/logo-64x64.png");
|
||||
that.element.find("div.current_kernel_logo").text(data.display_name.slice(0,1).toUpperCase());
|
||||
});
|
||||
|
||||
this.events.on('kernel_created.Session', function(event, data) {
|
||||
@ -141,14 +140,11 @@ define([
|
||||
});
|
||||
|
||||
var logo_img = this.element.find("img.current_kernel_logo");
|
||||
var logo_div = this.element.find("div.current_kernel_logo");
|
||||
logo_img.on("load", function() {
|
||||
logo_div.hide();
|
||||
logo_img.show();
|
||||
});
|
||||
logo_img.on("error", function() {
|
||||
logo_img.hide();
|
||||
logo_div.show();
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -8,11 +8,4 @@
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
div.current_kernel_logo {
|
||||
background-color: darken(@navbar-default-bg, 10%);
|
||||
font-size: 24px;
|
||||
text-align: center;
|
||||
text-decoration: bold;
|
||||
}
|
||||
}
|
||||
|
6
IPython/html/static/style/style.min.css
vendored
6
IPython/html/static/style/style.min.css
vendored
@ -9684,12 +9684,6 @@ select[multiple].celltoolbar select {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
#kernel_logo_widget div.current_kernel_logo {
|
||||
background-color: #dfdfdf;
|
||||
font-size: 24px;
|
||||
text-align: center;
|
||||
text-decoration: bold;
|
||||
}
|
||||
#menubar {
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
|
@ -43,8 +43,7 @@ class="notebook_app"
|
||||
</span>
|
||||
|
||||
<span id="kernel_logo_widget">
|
||||
<img class="current_kernel_logo"/>
|
||||
<div class="current_kernel_logo"></div>
|
||||
<img class="current_kernel_logo" src=""/>
|
||||
</span>
|
||||
|
||||
{% endblock headercontainer %}
|
||||
|
Loading…
Reference in New Issue
Block a user