Skip to content

Commit

Permalink
fix(ui5-li-custom): enable setting height of the custom content (#311)
Browse files Browse the repository at this point in the history
Fixes: #310
  • Loading branch information
ilhan007 committed Apr 9, 2019
1 parent f24f78b commit 76bf9f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions packages/main/src/themes-next/CustomListItem.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,23 @@ ui5-li-custom .sap-phone .sapMLIB {
}

.sapMLIB.sapMCustomLI {
height: 100%;
padding: 0;
}

ui5-checkbox.multiSelectionCheckBox,
ui5-radiobutton.singleSelectionRadioButton {
display: flex;
align-items: center;
}

.sapMLIB.sapMCustomLI,
ui5-checkbox.multiSelectionCheckBox,
ui5-radiobutton.singleSelectionRadioButton {
min-width: 3rem;
}

.sapUiSizeCompact .sapMLIB.sapMCustomLI,
.sapUiSizeCompact ui5-checkbox.multiSelectionCheckBox,
.sapUiSizeCompact ui5-radiobutton.singleSelectionRadioButton {
min-width: 2rem;
Expand Down
12 changes: 6 additions & 6 deletions packages/main/test/sap/ui/webcomponents/main/pages/Kitchen.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,19 +390,19 @@
<section class="row">
<ui5-list header-text="Products" mode="SingleSelectEnd">
<ui5-li-custom type="Active">
<div style="width: 100%; height: 3rem; display: flex; align-items: center; justify-content: space-between">
<div style="width: 100%; height: 5rem; display: flex; align-items: center; justify-content: space-between">
<span>Laptop HP 2GB RAM Dual-core</span>
<ui5-link>Go to SAP</ui5-link>
</div>
</ui5-li-custom>
<ui5-li-custom type="Active">
<div style="width: 100%; height: 3rem; display: flex; align-items: center; justify-content: space-between">
<div style="width: 100%; height: 5rem; display: flex; align-items: center; justify-content: space-between">
<span>Laptop HP 2GB RAM Dual-core</span>
<ui5-link>Go to SAP</ui5-link>
</div>
</ui5-li-custom>
<ui5-li-custom type="Active">
<div style="width: 100%; height: 3rem; display: flex; align-items: center; justify-content: space-between">
<div style="width: 100%; height: 5rem; display: flex; align-items: center; justify-content: space-between">
<span>Laptop HP 2GB RAM Dual-core</span>
<ui5-link>Go to SAP</ui5-link>
</div>
Expand All @@ -411,19 +411,19 @@

<ui5-list header-text="Products" mode="MultiSelect">
<ui5-li-custom type="Active">
<div style="width: 100%; height: 3rem; display: flex; align-items: center; justify-content: space-between">
<div style="width: 100%; height: 8rem; display: flex; align-items: center; justify-content: space-between">
<span>Laptop HP 2GB RAM Dual-core</span>
<ui5-link>Go to SAP</ui5-link>
</div>
</ui5-li-custom>
<ui5-li-custom type="Active">
<div style="width: 100%; height: 3rem; display: flex; align-items: center; justify-content: space-between">
<div style="width: 100%; height: 8rem; display: flex; align-items: center; justify-content: space-between">
<span>Laptop HP 2GB RAM Dual-core</span>
<ui5-link>Go to SAP</ui5-link>
</div>
</ui5-li-custom>
<ui5-li-custom type="Active">
<div style="width: 100%; height: 3rem; display: flex; align-items: center; justify-content: space-between">
<div style="width: 100%; height: 8rem; display: flex; align-items: center; justify-content: space-between">
<span>Laptop HP 2GB RAM Dual-core</span>
<ui5-link>Go to SAP</ui5-link>
</div>
Expand Down

0 comments on commit 76bf9f3

Please sign in to comment.