Skip to content

Commit

Permalink
Fix icon width
Browse files Browse the repository at this point in the history
  • Loading branch information
smety committed Dec 5, 2024
1 parent 92100b0 commit 77031c3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Tento repozitář obsahuje generické šablony pro widgety v Pobo Page Builder.

Changelog verze:

- [3.4.2](version/3.4.2.md) - Fix `.rc-profit` icon width
- [3.4.1](version/3.4.0.md) - Extension of variables'
- [3.4.0](version/3.4.0.md) - Add multi-column widgets'
- [3.3.0](version/3.3.0.md) - New gallery - PhotoSwipe
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "widget-asset",
"version": "3.2.2",
"version": "3.4.2",
"description": "Widget asset for Pobo Page Builder",
"licenses": "BSD-3-Clause",
"source": "index.html",
Expand Down
9 changes: 7 additions & 2 deletions src/generic/rc-profit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
border-radius: var(--pobo-inline-border-radius);
border: var(--pobo-inline-border);

&__list-ico-img {
max-width: 100%;
height: auto;
}

&__list-container {
padding: var(--pobo-profit-list-container-padding);
margin: var(--pobo-profit-list-container-margin);
Expand Down Expand Up @@ -40,12 +45,12 @@
}

&__list-ico {
width: 30px;
width: var(--pobo-profit-list-ico-width);
display: flex;
}

&__list-content {
width: calc(100% - 80px);
width: calc(100% - var(--pobo-profit-list-ico-width));
padding: 0 0 0 20px;
}

Expand Down
1 change: 1 addition & 0 deletions src/utils/native-variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@
--pobo-profit-list-item-box-shadow: none;
--pobo-profit-list-item-border-radius: none;
--pobo-profit-list-item-border: none;
--pobo-profit-list-ico-width: 30px;

--pobo-profit-list-padding: 10px 30px;
--pobo-profit-list-margin: 20px 0;
Expand Down
5 changes: 5 additions & 0 deletions version/3.4.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 3.4.2

## Fixing bugs
- Fix `.rc-profit` icon width
- Add native variable for `rc-profit` icon width

0 comments on commit 77031c3

Please sign in to comment.