mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-18 12:10:24 +08:00
misc small impovements
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
// keyup is required for IE to properly reset height when deleting text
|
||||
this.$element.on('input keyup', function(event) {
|
||||
console.log("scrollHeight=" + this.scrollHeight + "diff=" + diff);
|
||||
// console.log("scrollHeight=" + this.scrollHeight + "diff=" + diff);
|
||||
$(this)
|
||||
.height(0)
|
||||
.height(this.scrollHeight - diff);
|
||||
|
||||
@@ -31,6 +31,6 @@
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.root li.editing {
|
||||
.root li.editing > .hoverWrap > textarea{
|
||||
outline: 1px dotted black;
|
||||
}
|
||||
@@ -11,6 +11,7 @@
|
||||
ul.navbar-right {
|
||||
list-style-type: none;
|
||||
display: inline;
|
||||
/*position: fixed; */
|
||||
}
|
||||
.navbar-right > li {
|
||||
position: relative;
|
||||
|
||||
+11
-3
@@ -66,14 +66,11 @@
|
||||
<script src="js/backbone/router.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<body>
|
||||
<div class='myNav'>
|
||||
<a class='logoLink'>CoNote</a>
|
||||
<textarea id='searchBar'> </textarea>
|
||||
<a class='btn btn-default'><i class='icon-star'></i></a>
|
||||
<a class="clickStatus">Uninitialized</a>
|
||||
|
||||
<ul class='navbar-right'>
|
||||
<li><a class='toggleSidebar'>Toggle sideBar</a></li>
|
||||
@@ -119,6 +116,17 @@
|
||||
$(function(){
|
||||
$('textarea').textareaAutoExpand();
|
||||
});
|
||||
|
||||
var width;
|
||||
$(window).resize(function() {
|
||||
width = $(window).width();
|
||||
if(width < 730){
|
||||
$(".navbar-right").hide();
|
||||
}
|
||||
if(width > 730){
|
||||
$(".navbar-right").show();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user