Skip to content

Commit a0fcbbb

Browse files
committed
Header action button appearance
1 parent ad5d3bc commit a0fcbbb

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

‎ui/scripts/ui/widgets/listView.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
jsonObj: $.map($instanceRow, function(elem) { return $(elem).data('jsonObj'); })
3939
};
4040
messageArgs = {
41-
name: $.map($instanceRow, function(elem) { return $(elem).find('td.name span').html() })
41+
name: $.map($instanceRow, function(elem) { return $(elem).find('td.name span').html(); })
4242
};
4343
} else {
4444
data = {
@@ -1652,6 +1652,7 @@
16521652
.addClass('button action add reduced-hide')
16531653
.data('list-view-action-id', 'add')
16541654
.append(
1655+
$('<span>').addClass('icon').html('&nbsp;'),
16551656
$('<span>').html(_l(listViewData.actions.add.label))
16561657
)
16571658
);

‎ui/stylesheets/csui/_action.scss‎

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,33 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717
@mixin csui-action-button {
18-
width: 25px;
19-
height: 25px;
18+
&:not(.button) {
19+
width: 25px;
20+
height: 25px;
21+
margin: 4px;
22+
}
23+
2024
float: left;
21-
margin: 4px;
2225
cursor: pointer;
2326

27+
span {
28+
display: block;
29+
float: left;
30+
}
31+
2432
a {
2533
text-decoration: none;
2634
}
2735

2836
.icon {
2937
display: block;
30-
width: 100%;
31-
height: 100%;
38+
width: 25px;
39+
height: 20px;
40+
margin-bottom: -12px; // Keep aligned with non-icon buttons
41+
float: left;
42+
position: relative;
43+
top: -5px;
44+
left: -5px;
3245
}
3346

3447
&.text {

0 commit comments

Comments
 (0)