optimize frontend style
This commit is contained in:
parent
dd288f33e4
commit
adf8d4c0ec
@ -2,7 +2,8 @@
|
|||||||
background-color: var(--badge-background-color);
|
background-color: var(--badge-background-color);
|
||||||
color: var(--badge-color);
|
color: var(--badge-color);
|
||||||
|
|
||||||
padding: 3px 12px;
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ function ModelSettingBlock() {
|
|||||||
return (
|
return (
|
||||||
<SettingBlock
|
<SettingBlock
|
||||||
className="model-setting-block"
|
className="model-setting-block"
|
||||||
title="Inpainting Model"
|
title="Model"
|
||||||
titleSuffix={renderPaperCodeBadge()}
|
titleSuffix={renderPaperCodeBadge()}
|
||||||
input={
|
input={
|
||||||
<Selector
|
<Selector
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin-top: -11rem;
|
|
||||||
animation: slideDown 0.2s ease-out;
|
animation: slideDown 0.2s ease-out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -26,7 +25,6 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
@include mobile {
|
@include mobile {
|
||||||
grid-template-columns: auto;
|
|
||||||
column-gap: 0;
|
column-gap: 0;
|
||||||
row-gap: 0.6rem;
|
row-gap: 0.6rem;
|
||||||
}
|
}
|
||||||
@ -34,10 +32,23 @@
|
|||||||
|
|
||||||
.shortcut-key {
|
.shortcut-key {
|
||||||
justify-self: end;
|
justify-self: end;
|
||||||
border: 1px solid var(--modal-hotkey-border-color);
|
padding-left: 0.5rem;
|
||||||
padding: 0.4rem 0.4rem;
|
padding-right: 0.5rem;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
border-radius: 0.2rem;
|
border-radius: 6px;
|
||||||
|
user-select: none;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
color: var(--modal-text-color);
|
||||||
|
background-color: var(--page-bg);
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
box-shadow: var(--box-shadow);
|
||||||
|
|
||||||
|
text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
|
||||||
|
font-family: inherit;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 1.5;
|
||||||
|
|
||||||
@include mobile {
|
@include mobile {
|
||||||
padding: 0.2rem 0.4rem;
|
padding: 0.2rem 0.4rem;
|
||||||
|
@ -51,15 +51,16 @@ export default function ShortcutsModal() {
|
|||||||
>
|
>
|
||||||
<div className="shortcut-options">
|
<div className="shortcut-options">
|
||||||
<ShortCut
|
<ShortCut
|
||||||
content="Enable Multi-Stroke Mask Drawing"
|
content="Multi-Stroke Mask Drawing"
|
||||||
keys={[`Hold ${CmdOrCtrl}`]}
|
keys={[`Hold ${CmdOrCtrl}`]}
|
||||||
/>
|
/>
|
||||||
<ShortCut content="Undo Inpainting" keys={[CmdOrCtrl, 'Z']} />
|
|
||||||
<ShortCut content="Pan" keys={['Space & Drag']} />
|
|
||||||
<ShortCut content="View Original Image" keys={['Hold Tab']} />
|
|
||||||
<ShortCut content="Reset Zoom/Pan" keys={['Esc']} />
|
|
||||||
<ShortCut content="Cancel Mask Drawing" keys={['Esc']} />
|
<ShortCut content="Cancel Mask Drawing" keys={['Esc']} />
|
||||||
<ShortCut content="Run Inpainting Manually" keys={['Shift', 'R']} />
|
<ShortCut content="Run Inpainting Manually" keys={['Shift', 'R']} />
|
||||||
|
<ShortCut content="Undo Inpainting" keys={[CmdOrCtrl, 'Z']} />
|
||||||
|
<ShortCut content="Redo Inpainting" keys={[CmdOrCtrl, 'Shift', 'Z']} />
|
||||||
|
<ShortCut content="View Original Image" keys={['Hold Tab']} />
|
||||||
|
<ShortCut content="Pan" keys={['Space + Drag']} />
|
||||||
|
<ShortCut content="Reset Zoom/Pan" keys={['Esc']} />
|
||||||
<ShortCut content="Decrease Brush Size" keys={['[']} />
|
<ShortCut content="Decrease Brush Size" keys={['[']} />
|
||||||
<ShortCut content="Increase Brush Size" keys={[']']} />
|
<ShortCut content="Increase Brush Size" keys={[']']} />
|
||||||
<ShortCut content="Toggle Dark Mode" keys={['Shift', 'D']} />
|
<ShortCut content="Toggle Dark Mode" keys={['Shift', 'D']} />
|
||||||
|
@ -51,4 +51,9 @@
|
|||||||
// badge
|
// badge
|
||||||
--badge-background-color: hsl(209 13.3% 95.3%);
|
--badge-background-color: hsl(209 13.3% 95.3%);
|
||||||
--badge-color: hsl(206 6% 43.5%);
|
--badge-color: hsl(206 6% 43.5%);
|
||||||
|
|
||||||
|
// keyboard shortcuts
|
||||||
|
--box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.1),
|
||||||
|
inset 0 1px 5px hsl(210 16.7% 97.6%), 0px 0px 0px 0.5px hsl(205 10.7% 78%),
|
||||||
|
0px 2px 1px -1px hsl(205 10.7% 78%), 0 1px hsl(205 10.7% 78%);
|
||||||
}
|
}
|
||||||
|
@ -49,4 +49,9 @@
|
|||||||
// badge
|
// badge
|
||||||
--badge-background-color: hsl(197 6.8% 13.6%);
|
--badge-background-color: hsl(197 6.8% 13.6%);
|
||||||
--badge-color: hsl(206 6% 63%);
|
--badge-color: hsl(206 6% 63%);
|
||||||
|
|
||||||
|
// keyboard shortcuts
|
||||||
|
--box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.1),
|
||||||
|
inset 0 1px 5px hsl(195 7.1% 11%), 0px 0px 0px 0.5px hsl(207 5.6% 31.6%),
|
||||||
|
0px 2px 1px -1px hsl(207 5.6% 31.6%), 0 1px hsl(207 5.6% 31.6%);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user