diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9792498 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.formatOnSave": false +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c05dda..ed1f2f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.12.0] - 2020-10-22 + +### Added + +### Changed +- Resolved a few dependencies vulnerabilities +- Fixed reported scaling issue + ## [0.11.0] - 2020-05-28 ### Added diff --git a/README.md b/README.md index 594f5ab..64be067 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ These options let you override the default icon, commands, devices, and visibili | ----------------- | ------- | ------------ | ------------------------------------------- | ------------------- | | command | string | **Optional** | The device command to use | See below | | device | string | **Optional** | The harmony device name to send the command to | See below | -| icon | string | **Optional** | The icon to display for the button | See below | +| icon | string | **Optional** | The icon to display for the button (ex. `mdi:` + http://materialdesignicons.com/) | See below | | hide | string | **Optional** | Should this button be hidden | false | | color | string | **Optional** | A css string to represent the color ex. '#ff0000' | | diff --git a/package.json b/package.json index 431b662..d2d5055 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "harmony-card", - "version": "0.11.0", + "version": "0.12.0", "description": "Lovelace harmony-card", "keywords": [ "home-assistant", @@ -51,8 +51,8 @@ }, "scripts": { "start": "rollup -c --watch", - "build": "npm run lint && npm run rollup", + "build": "npm run rollup", "lint": "eslint src/*.ts", "rollup": "rollup -c" } -} \ No newline at end of file +} diff --git a/src/const.ts b/src/const.ts index b460ba0..8cdb92a 100644 --- a/src/const.ts +++ b/src/const.ts @@ -1,6 +1,6 @@ import { HarmonyButtonConfig } from "./types"; -export const CARD_VERSION = '0.11.0'; +export const CARD_VERSION = '0.12.0'; export const DEFAULT_BUTTONS: { [key: string]: HarmonyButtonConfig } = { 'volume_down': { diff --git a/src/harmony-card.ts b/src/harmony-card.ts index 42d883d..35650b0 100644 --- a/src/harmony-card.ts +++ b/src/harmony-card.ts @@ -290,7 +290,10 @@ export class HarmonyCard extends LitElement { private computeStyles() { var scale = this._config?.scale || 1; - return styleMap({ '--mmp-unit': `${40 * scale}px` }); + return styleMap({ + '--mmp-unit': `${40 * scale}px`, + '--mdc-icon-size': `${24 * scale}px` + }); } private computeButtonConfig(config: HarmonyCardConfig, currentActivityConfig?: HarmonyActivityConfig): { [key: string]: HarmonyButtonConfig } {