Fix css variable names.

This commit is contained in:
trading_peter 2024-10-21 23:37:00 +02:00
parent 12596d62cd
commit 2afe9d1965
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@tp/tp-avatar", "name": "@tp/tp-avatar",
"version": "1.0.2", "version": "1.0.3",
"description": "", "description": "",
"main": "tp-avatar.js", "main": "tp-avatar.js",
"scripts": { "scripts": {

View File

@ -16,6 +16,8 @@ class TpAvatar extends LitElement {
display: inline-block; display: inline-block;
position: relative; position: relative;
border-radius: 50%; border-radius: 50%;
width: var(--tp-avatar-size, 32px);
height: var(--tp-avatar-size, 32px);
} }
:host [hidden] { :host [hidden] {
@ -43,8 +45,8 @@ class TpAvatar extends LitElement {
position: absolute; position: absolute;
inset: 0; inset: 0;
--tp-icon-height: var(--ef-avatar-size, 32px); --tp-icon-height: var(--tp-avatar-size, 32px);
--tp-icon-width: var(--ef-avatar-size, 32px); --tp-icon-width: var(--tp-avatar-size, 32px);
} }
tp-icon.hidden { tp-icon.hidden {