mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 20:14:37 -04:00
Clean code.
This commit is contained in:
parent
4db158e8d9
commit
9637c89b1b
2 changed files with 3 additions and 4 deletions
|
@ -32,6 +32,9 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
.crumb:first-of-type .sep {
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
.label {
|
.label {
|
||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
|
@ -20,10 +20,6 @@ modulejs.define('ext/crumb', ['_', '$', 'core/event', 'core/location', 'core/res
|
||||||
|
|
||||||
$html.find('.label').text(item.label);
|
$html.find('.label').text(item.label);
|
||||||
|
|
||||||
if (item.isDomain() || item.isRoot()) {
|
|
||||||
$html.find('.sep').width(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (item.isCurrentFolder()) {
|
if (item.isCurrentFolder()) {
|
||||||
$html.addClass('active');
|
$html.addClass('active');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue