Skip to content

Commit

Permalink
make default keys list two columns if there are no default sources fo…
Browse files Browse the repository at this point in the history
…r selected platform
  • Loading branch information
Nerwyn committed Dec 10, 2024
1 parent f79dfe8 commit 19a29c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/universal-remote-card.min.js

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions src/universal-remote-card-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,9 @@ export class UniversalRemoteCardEditor extends LitElement {
<div class="title-header">
Custom Actions
</div>
<ul class="action-list custom-action-list">
<ul
class="action-list two-column-action-list"
>
${customActions.map((entry) => {
const context =
this.getEntryContext(
Expand Down Expand Up @@ -1944,7 +1946,11 @@ export class UniversalRemoteCardEditor extends LitElement {
? html`<div class="wrapper">
<div class="title-header">Default Keys</div>
<div class="action-list-container">
<ul class="action-list">
<ul
class="action-list ${defaultSources.length
? ''
: 'two-column-action-list'}"
>
${defaultKeys.map((entry) => {
const context =
this.getEntryContext(
Expand Down Expand Up @@ -3336,7 +3342,7 @@ export class UniversalRemoteCardEditor extends LitElement {
margin-top: 4px;
padding-left: 4px;
}
.custom-action-list {
.two-column-action-list {
columns: 2;
-webkit-columns: 2;
-moz-columns: 2;
Expand Down

0 comments on commit 19a29c1

Please sign in to comment.