diff --git a/asset/css/list/item-list.less b/asset/css/list/item-list.less index c5c0bd28..07290181 100644 --- a/asset/css/list/item-list.less +++ b/asset/css/list/item-list.less @@ -79,7 +79,3 @@ } } } - -.controls .list-item:not(:last-child) { - margin-bottom: .5em; -} diff --git a/src/Common/BaseTableRowItem.php b/src/Common/BaseTableRowItem.php index c24578fc..66e223a5 100644 --- a/src/Common/BaseTableRowItem.php +++ b/src/Common/BaseTableRowItem.php @@ -16,7 +16,7 @@ abstract class BaseTableRowItem extends BaseHtmlElement /** @var object The associated list item */ protected $item; - /** @var ?BaseItemTable The list where the item is part of */ + /** @var BaseItemTable The list where the item is part of */ protected $table; protected $tag = 'li'; @@ -25,17 +25,13 @@ abstract class BaseTableRowItem extends BaseHtmlElement * Create a new table row item * * @param object $item - * @param BaseItemTable|null $table + * @param BaseItemTable $table */ - public function __construct($item, BaseItemTable $table = null) + public function __construct($item, BaseItemTable $table) { $this->item = $item; $this->table = $table; - if ($table === null) { - $this->setTag('div'); - } - $this->addAttributes($this->baseAttributes); $this->init();