style refine

This commit is contained in:
Sanster
2022-04-04 21:51:33 +08:00
parent 855fd1f006
commit 10b35a3f0a
33 changed files with 263 additions and 686 deletions

View File

@@ -33,8 +33,9 @@
}
.shortcut-key {
justify-self: end;
font-family: 'WorkSans-Bold';
background-color: var(--modal-hotkey-bg);
border: 1px solid var(--modal-hotkey-border-color);
padding: 0.4rem 1rem;
width: max-content;
border-radius: 0.4rem;
@@ -45,9 +46,9 @@
}
.shortcut-description {
justify-self: end;
text-align: right;
width: 15rem;
justify-self: start;
text-align: left;
width: 18rem;
@include mobile {
text-align: left;

View File

@@ -23,6 +23,7 @@ const Shortcuts = () => {
<Button
onClick={shortcutStateHandler}
disabled={shortcutVisibility}
style={{ border: 0 }}
icon={
<svg
xmlns="http://www.w3.org/2000/svg"

View File

@@ -13,8 +13,8 @@ function ShortCut(props: Shortcut) {
return (
<div className="shortcut-option">
<div className="shortcut-key">{children}</div>
<div className="shortcut-description">{content}</div>
<div className="shortcut-key">{children}</div>
</div>
)
}
@@ -45,7 +45,10 @@ export default function ShortcutsModal() {
<ShortCut content="View original image">
<p>Hold Tab</p>
</ShortCut>
<ShortCut content="Reset zoom/pan & Cancel mask drawing">
<ShortCut content="Reset zoom/pan">
<p>Esc</p>
</ShortCut>
<ShortCut content="Cancel mask drawing">
<p>Esc</p>
</ShortCut>
<ShortCut content="Decrease Brush Size">