@kaspernj/api-maker 1.0.410 → 1.0.411
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/table/model-row.jsx +1 -1
- package/src/table/table.jsx +5 -1
package/package.json
CHANGED
package/src/table/model-row.jsx
CHANGED
|
@@ -64,7 +64,7 @@ export default memo(shapeComponent(class ApiMakerBootStrapLiveTableModelRow exte
|
|
|
64
64
|
</Column>
|
|
65
65
|
}
|
|
66
66
|
{columns && this.columnsContentFromColumns(model, even)}
|
|
67
|
-
<Column dataSet={{class: "actions-column"}} style={styleForColumn({even, style: {
|
|
67
|
+
<Column dataSet={{class: "actions-column"}} style={styleForColumn({even, style: {}, type: "actions"})}>
|
|
68
68
|
{actionsContent && actionsContent(this.modelCallbackArgs)}
|
|
69
69
|
{viewPath &&
|
|
70
70
|
<Link dataSet={{class: "view-button"}} to={viewPath}>
|
package/src/table/table.jsx
CHANGED
|
@@ -495,7 +495,11 @@ export default memo(shapeComponent(class ApiMakerTable extends BaseComponent {
|
|
|
495
495
|
backgroundColor: even ? "#f5f5f5" : undefined
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
if (type
|
|
498
|
+
if (type == "actions") {
|
|
499
|
+
defaultStyle.flexDirection = "row"
|
|
500
|
+
defaultStyle.alignItems = "center"
|
|
501
|
+
defaultStyle.marginLeft = "auto"
|
|
502
|
+
} else {
|
|
499
503
|
defaultStyle.borderRight = "1px solid #dbdbdb"
|
|
500
504
|
}
|
|
501
505
|
|