aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-06-20 14:10:17 +0200
committerlonkaars <loek@pipeframe.xyz>2021-06-20 14:10:17 +0200
commit4d9301fdc0bb64f34906afcb7a22cbe0d4e42627 (patch)
treebbf17f2dfce24f00f85f32ef544d5cd8c0a9db83
parenta5eeeca1383a0fdf50d0c76730e1ace8f03f3759 (diff)
display unbound + css fix for keybindings selection
-rw-r--r--components/keybindselector.tsx1
-rw-r--r--styles/keybindselector.css13
2 files changed, 13 insertions, 1 deletions
diff --git a/components/keybindselector.tsx b/components/keybindselector.tsx
index 1d11b6b..b7deed8 100644
--- a/components/keybindselector.tsx
+++ b/components/keybindselector.tsx
@@ -38,6 +38,7 @@ export default function KeybindSelector(props: {
}}
/>
)}
+ {props.value.length == 0 && <span className='placeholder'>Unbound</span>}
</div>;
}
diff --git a/styles/keybindselector.css b/styles/keybindselector.css
index cc57501..34c174f 100644
--- a/styles/keybindselector.css
+++ b/styles/keybindselector.css
@@ -1,10 +1,14 @@
-.keybind-selector-inner { padding: 27px 12px 10px; }
+.keybind-selector-inner {
+ padding: 27px 12px 6px;
+ min-height: 25px;
+}
.keybind-selector > * { cursor: pointer !important; }
.keybind-selector-inner .keybind {
padding: 2px 4px 1px;
margin-right: 3px;
+ margin-bottom: 3px;
border-radius: 4px;
user-select: none;
cursor: pointer;
@@ -17,6 +21,13 @@
color: var(--c100);
}
+.keybind-selector-inner .placeholder {
+ font-style: italic;
+ color: var(--c700);
+ margin-top: 2px;
+ display: inline-block;
+}
+
.keybind-selector-inner .keybind:hover {
opacity: .7;
}