mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Fixed has-favorites CSS
This commit is contained in:
parent
fb220a1e09
commit
33eb4483b2
3 changed files with 5 additions and 2 deletions
|
|
@ -291,7 +291,7 @@ table td.filename .nametext {
|
|||
max-width: 800px;
|
||||
height: 100%;
|
||||
}
|
||||
#fileList.has-favorites td.filename a.name {
|
||||
.has-favorites #fileList td.filename a.name {
|
||||
left: 50px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
|
||||
_extendFileList: function(fileList) {
|
||||
// extend row prototype
|
||||
fileList.$fileList.addClass('has-favorites');
|
||||
fileList.$el.addClass('has-favorites');
|
||||
var oldCreateRow = fileList._createRow;
|
||||
fileList._createRow = function(fileData) {
|
||||
var $tr = oldCreateRow.apply(this, arguments);
|
||||
|
|
|
|||
|
|
@ -71,6 +71,9 @@ describe('OCA.Files.TagsPlugin tests', function() {
|
|||
expect($tr.attr('data-tags').split('|')).toEqual(['tag1', 'tag2', OC.TAG_FAVORITE]);
|
||||
expect($tr.attr('data-favorite')).toEqual('true');
|
||||
});
|
||||
it('adds has-favorites class on table', function() {
|
||||
expect(fileList.$el.hasClass('has-favorites')).toEqual(true);
|
||||
});
|
||||
});
|
||||
describe('Applying tags', function() {
|
||||
it('sends request to server and updates icon', function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue