Custom actions with icons overlap
See original GitHub issueHi All, I am having major issues getting custom actions to render, can someone please help?
I have set up my settings like so:
settings = {
actions:{
add:false,
edit:false,
delete:false,
custom: [
{
name: 'accept',
title: '<i class="nb-checkmark inline-block width: 50px"></i>',
},
{
name: 'deny',
title: '<i class="nb-close inline-block width: 50px"></i>',
},
],
},
columns: {
mmsi: {
title: 'MMSI',
editable: false,
},
state: {
title: 'State',
editable: false,
},
vendor: {
title: 'Vendor',
editable: false,
},
userid: {
title: 'UserId',
editable: false,
},
},
};
}
this produces:
I found on another issue that someone had added the following CSS to override the defaults:
:host ::ng-deep tr .ng2-smart-actions{ display: flex; }
:host ::ng-deep nbng2-st-tbody-custom {display: flex;}
:host ::ng-deep ng2-st-tbody-edit-delete a.ng2-smart-action {display: inline-block !important;}
:host ::ng-deep ng2-st-tbody-create-cancel a.ng2-smart-action {display: inline-block !important;}
:host ::ng-deep ng2-st-tbody-custom a.ng2-smart-action.ng2-smart-action-custom-custom {
display: inline-block;
width: 80px;
text-align: center;
}
But this produces this output:
The buttons are not aligned, the actions border is messed up, and the other columns on the actions look like they are 1 pixel out.
Please, does anyone know how to resolve?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Add custom action button - ng2-smart-table - Stack Overflow
I'm trying to add a button to custom action, but a new column is not added in the action ...
Read more >Custom Actions, Create Your Own Contest Entry Types - Gleam
Custom actions, customize and create your own actions ... custom action types, you can also give them custom icons using the icon code...
Read more >Create Custom Actions for the Dispatcher Console
Icon : Select an icon to display next to the action label. Click Save. Optionally, reorder the actions in the action category you...
Read more >Customizing action button appearance
Is there a way to color action buttons? I have different icons for them, but being able to color them separately would help...
Read more >Custom:Button-card overlapping with previous one
Anyone can help me (I am not really familier with CSS) ? Thanks. - type: custom:button-card entity: 'climate.cuisine_m' aspect_ratio: 1/1 icon: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@michabbb Thanks for your solution !
The same thing for the right side ( with a perfect display without border 😉 )
I have the same problem, some answer to this, the one from jupmorenorde I improve it, but it keeps staying like this…