Skip to content

Commit

Permalink
Merge pull request #42 from perimetre/fix/WYSIWYG-height
Browse files Browse the repository at this point in the history
fix/wysiwyg height
  • Loading branch information
AssisrMatheus authored Jun 21, 2021
2 parents de5c391 + 4d9a99b commit 20fc578
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [3.0.6] - 2021-06-21

### Changes

### Added

- Added minHeight at default-present with default spacing.

### Fixed

- Fixed a bug with height on the `size` property for WYSIWYG input component.

## [3.0.5] - 2021-06-21

### Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@perimetre/ui",
"description": "A component library made by @perimetre",
"version": "3.0.5",
"version": "3.0.6",
"repository": {
"type": "git",
"url": "git+https://github.com/perimetre/ui.git"
Expand Down
6 changes: 3 additions & 3 deletions src/components/WYSIWYGInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ const styleMap: DraftStyleMap = {
};

const sizeClassnameMap = {
small: 'h-44',
medium: 'h-56',
large: 'h-96'
small: 'min-h-44',
medium: 'min-h-56',
large: 'min-h-96'
};

export type WYSIWYGInputRef = {
Expand Down
9 changes: 9 additions & 0 deletions src/presets/default-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ module.exports = {
max: 'max-content',
initial: 'initial'
}),
/**
* Returns the minHeight values
*
* @param theme the provided tailwind theme
*/
minHeight: (theme) => ({
auto: 'auto',
...theme('spacing')
}),
height: {
'5/12vh': '41.666667vh'
},
Expand Down

0 comments on commit 20fc578

Please sign in to comment.