Skip to content

Commit

Permalink
fix: input width
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyEggo committed Aug 14, 2024
1 parent 50fbecd commit 10293fb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 18 deletions.
10 changes: 6 additions & 4 deletions example/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"$schema": "https://schemas.elgato.com/streamdeck/plugins/manifest.json",
"UUID": "com.geekyeggo.sdpi.counter",
"Name": "Counter",
"Version": "1.0.0",
"Version": "1.0.0.0",
"Author": "Richard Herman",
"Actions": [
{
Expand All @@ -18,7 +20,7 @@
},
"States": [
{
"FontSize": "18",
"FontSize": 18,
"Image": "imgs/counter/image",
"TitleAlignment": "middle"
}
Expand All @@ -32,7 +34,7 @@
"Icon": "imgs/plugin/icon",
"SDKVersion": 2,
"Software": {
"MinimumVersion": "4.1"
"MinimumVersion": "6.4"
},
"OS": [
{
Expand All @@ -44,4 +46,4 @@
"MinimumVersion": "10"
}
]
}
}
8 changes: 1 addition & 7 deletions example/pi/sdpi-components.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/components/sdpi-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ export class SdpiItem extends LitElement {
font-family: var(--font-family);
font-size: var(--font-size);
margin: 0 0 10px 0;
max-width: 322px;
-webkit-user-drag: none;
}
.grid {
align-items: start;
display: grid;
grid-template-columns: 95px 1fr;
grid-template-columns: 95px 241px;
}
.label {
Expand Down
4 changes: 0 additions & 4 deletions src/mixins/delegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ export const Delegate = <
return [
...asArray(super.styles),
css`
.container {
width: var(--input-width);
}
label {
align-self: center;
background-color: var(--input-bg-color);
Expand Down
1 change: 0 additions & 1 deletion src/styles/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const hostStyle = css`
--font-size: 9pt;
/* Pre-determined dimensions */
--input-width: 227px;
--input-height: 30px;
}
`;

0 comments on commit 10293fb

Please sign in to comment.