Skip to content

Commit

Permalink
fix: tailwind safelist
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Nov 3, 2023
1 parent b136056 commit 3bf32a2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,8 @@ Below you can find a more complex example which is using multiple components and

| Component | Description | Arguments |
| --------------------------------- | ------------------------------ | -------------------------------- |
| unfold/components/chart/bar.html | Bar chart implementation | class, data |
| unfold/components/chart/line.html | Line chart implementation | class, data |
| unfold/components/chart/bar.html | Bar chart implementation | class, data, height, width |
| unfold/components/chart/line.html | Line chart implementation | class, data, height, width |
| unfold/components/card.html | Card component | class, title, footer, label |
| unfold/components/container.html | Wrapper for settings max width | class |
| unfold/components/flex.html | Flex items | class, col |
Expand Down
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/unfold/templates/unfold/components/chart/bar.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="relative w-full{% if class %} {{ class }}{% endif %}">
<canvas class="chart" data-type="bar" data-value="{{ data }}"></canvas>
<canvas class="chart" data-type="bar" data-value="{{ data }}" {% if width %}width="{{ width }}"{% endif %} {% if height %}height="{{ height }}"{% endif %}></canvas>
</div>
2 changes: 1 addition & 1 deletion src/unfold/templates/unfold/components/chart/line.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="relative w-full{% if class %} {{ class }}{% endif %}">
<canvas class="chart" data-type="line" data-value="{{ data }}"></canvas>
<canvas class="chart" data-type="line" data-value="{{ data }}" {% if width %}width="{{ width }}"{% endif %} {% if height %}height="{{ height }}"{% endif %}></canvas>
</div>
14 changes: 1 addition & 13 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,7 @@ module.exports = {
variants: ["lg"],
},
{
pattern: /w-+/,
variants: ["lg"],
},
{
pattern: /h-+/,
variants: ["lg"],
},
{
pattern: /m(\w?)-+/,
variants: ["lg"],
},
{
pattern: /p(\w?)-+/,
pattern: /w-(1\/2|1\/3|2\/3|1\/4|2\/4|3\/4|1\/5|2\/5|3\/5|4\/5)/,
variants: ["lg"],
},
],
Expand Down

0 comments on commit 3bf32a2

Please sign in to comment.