调整了一下显示

This commit is contained in:
luchenqun 2016-11-02 22:19:31 +08:00
parent 8a0a724fc3
commit 7a36826f79
3 changed files with 21 additions and 15 deletions

View File

@ -20,6 +20,12 @@ body {
overflow: hidden;
color:#212121;
}
.wrap{
white-space:nowrap;
text-overflow:ellipsis;
-o-text-overflow:ellipsis;
overflow: hidden;
}
.js-navigate-bookmark a{
color:#212121;
}

View File

@ -1,12 +1,12 @@
<div class="ui segment" ng-if="showStyle === 'navigate'">
<div class="ui internally grid">
<div class="row" ng-repeat="tag in bookmarks">
<div class="one wide column">
<span style="color:#0aa770;">{{ tag.name }}</span>
<div class="wrap" style="width:80px">
<span style="color:#0aa770;">&nbsp;&nbsp;&nbsp;&nbsp;{{ tag.name }}</span>
</div>
<div class="fifteen wide column">
<div class="fourteen wide column">
<div class="ui grid container">
<div class="two wide column js-navigate-bookmark" ng-class="{divHover:hoverItem}" ng-mouseover="hoverItem=true" ng-mouseleave="hoverItem=false" ng-repeat="bookmark in tag.bookmarks" ng-click="jumpToUrl(bookmark.url)">
<div class="two wide column js-navigate-bookmark" style="width:60px" ng-class="{divHover:hoverItem}" ng-mouseover="hoverItem=true" ng-mouseleave="hoverItem=false" ng-repeat="bookmark in tag.bookmarks" ng-click="jumpToUrl(bookmark.url)">
<img class="ui ui middle aligned tiny image" src="http://api.byi.pw/favicon/?url={{ bookmark.url }}" style="width:16px;height:16px">
<span>{{ bookmark.title}}</span>
</div>

View File

@ -1,22 +1,22 @@
var api = require('express').Router();
var mysql = require('mysql');
var crypto = require('crypto');
var client = mysql.createConnection({
host: '104.238.161.131',
user: 'lcq',
password: 'fendoubuxi596320',
database: 'mybookmarks',
multipleStatements: true,
port: 3306
});
// var client = mysql.createConnection({
// host: '127.0.0.1',
// user: 'lcq',
// password: '123456',
// host: '172.24.13.5',
// user: 'root',
// password: 'root123',
// database: 'mybookmarks',
// multipleStatements: true,
// port: 3306
// });
var client = mysql.createConnection({
host: '127.0.0.1',
user: 'lcq',
password: '123456',
database: 'mybookmarks',
multipleStatements: true,
port: 3306
});
client.connect();
api.post('/logout', function(req, res) {