Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
ad8d2e16
Commit
ad8d2e16
authored
Jul 07, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix long title issue
parent
504db664
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
259 additions
and
32 deletions
+259
-32
social.css
social/social.css
+242
-25
social.css.map
social/social.css.map
+1
-0
social.js
social/social.js
+11
-6
social.less
social/social.less
+1
-1
kityminder.css
themes/default/css/kityminder.css
+4
-0
No files found.
social/social.css
View file @
ad8d2e16
This diff is collapsed.
Click to expand it.
social/social.css.map
0 → 100644
View file @
ad8d2e16
{"version":3,"file":"social.css","sources":["social.less"],"names":[],"mappings":"AAAA;EACI,YAAA;EACA,YAAY,+DAAZ;;EACA,YAAY,gDAAgD,yBAAwB,yBAAwB,0BAA5G;;EACA,YAAY,kEAAZ;;EACA,YAAY,6DAAZ;;EACA,YAAY,8DAAZ;;EACA,YAAY,gEAAZ;;;AAGJ;EACI,mBAAA;EACA,kBAAA;;AACA,SAAC;EACG,SAAS,GAAT;EACA,cAAA;EACA,kBAAA;EACA,WAAA;EACA,SAAA;EACA,QAAA;EACA,SAAA;EACA,aAAA;EACA,qBAAA;EACA,sDAAA;;AAGA,SADH,OACI;AAAD,SADO,OACN;EACG,sDAAA;;AAKZ;EACI,oBAAoB,YAAY,iBAAhC;EACA,aAAA;EACA,qBAAA;EACA,sBAAA;EACA,eAAA;EACA,YAAA;EACA,eAAA;EACA,iBAAA;EACA,kBAAA;EACA,WAAA;EACA,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...
@@ -86,7 +86,12 @@ $(function() {
notice
=
(
function
()
{
return
window
.
alert
;
})();
})(),
wordLimit
=
function
(
word
,
limit
)
{
limit
=
limit
||
15
;
return
word
.
length
>
limit
?
(
word
.
substr
(
0
,
limit
-
3
)
+
'...'
)
:
word
;
};
start
();
...
...
@@ -338,11 +343,11 @@ $(function() {
if
(
!
saved
)
{
filename
=
'* '
+
filename
;
}
$title
.
text
(
filename
);
$title
.
text
(
(
filename
)
);
}
else
if
(
currentAccount
)
{
$title
.
text
(
'* '
+
minder
.
getMinderTitle
(
));
$title
.
text
(
(
'* '
+
minder
.
getMinderTitle
()
));
}
else
{
$title
.
text
(
filename
||
minder
.
getMinderTitle
(
));
$title
.
text
(
(
filename
||
minder
.
getMinderTitle
()
));
}
document
.
title
=
[
filename
||
minder
.
getMinderTitle
(),
titleSuffix
].
join
(
' - '
);
...
...
@@ -895,7 +900,7 @@ $(function() {
$draft_menu
.
append
(
'<li disabled="disabled" class="current-draft kmui-combobox-item kmui-combobox-item-disabled kmui-combobox-checked">'
+
'<span class="kmui-combobox-icon"></span>'
+
'<label class="kmui-combobox-item-label">'
+
'<span class="update-time">'
+
getFriendlyTimeSpan
(
+
new
Date
(
draft
.
update
),
+
new
Date
())
+
'</span>'
+
draft
.
name
+
'<span class="update-time">'
+
getFriendlyTimeSpan
(
+
new
Date
(
draft
.
update
),
+
new
Date
())
+
'</span>'
+
wordLimit
(
draft
.
name
)
+
'</label>'
+
'</li>'
);
$draft_menu
.
append
(
'<li class="kmui-divider"></li>'
);
...
...
@@ -907,7 +912,7 @@ $(function() {
while
(
list
.
length
)
{
draft
=
list
.
shift
();
$draft
=
$
(
'<li class="draft-item">'
+
'<a href="#">'
+
'<span class="update-time">'
+
getFriendlyTimeSpan
(
+
new
Date
(
draft
.
update
),
+
new
Date
())
+
'</span>'
+
draft
.
name
+
'</a><a class="delete" title="删除该草稿"></a></li>'
);
'<a href="#">'
+
'<span class="update-time">'
+
getFriendlyTimeSpan
(
+
new
Date
(
draft
.
update
),
+
new
Date
())
+
'</span>'
+
wordLimit
(
draft
.
name
)
+
'</a><a class="delete" title="删除该草稿"></a></li>'
);
$draft
.
data
(
'draft-index'
,
index
++
);
$draft
.
appendTo
(
$draft_menu
);
}
...
...
social/social.less
View file @
ad8d2e16
...
...
@@ -69,7 +69,7 @@ button {
span.update-time {
float: right;
color: #CCC;
margin-left:
2
0px;
margin-left:
4
0px;
padding-right: 16px;
}
li.draft-item a {
...
...
themes/default/css/kityminder.css
View file @
ad8d2e16
...
...
@@ -26,6 +26,10 @@ html, body, #kityminder, div.kmui-editor-body {
text-align
:
center
;
font-weight
:
300
;
font-size
:
14px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
word-break
:
break-word
;
white-space
:
nowrap
;
}
#panel
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment