This reverts commit f615f8ac0c.
This commit is contained in:
parent
27b1308227
commit
cd26b2e096
2 changed files with 9 additions and 22 deletions
|
|
@ -52,7 +52,6 @@ export const ShortcutsModal: React.FC<Props> = ({ isOpen, setIsOpen }) => {
|
||||||
? true
|
? true
|
||||||
: false
|
: false
|
||||||
);
|
);
|
||||||
const { platform } = (window.navigator as any).userAgentData;
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isOpen) setQuery("");
|
if (!isOpen) setQuery("");
|
||||||
|
|
@ -127,18 +126,12 @@ export const ShortcutsModal: React.FC<Props> = ({ isOpen, setIsOpen }) => {
|
||||||
{shortcut.keys.split(",").map((key, index) => (
|
{shortcut.keys.split(",").map((key, index) => (
|
||||||
<span key={index} className="flex items-center gap-1">
|
<span key={index} className="flex items-center gap-1">
|
||||||
{key === "Ctrl" ? (
|
{key === "Ctrl" ? (
|
||||||
platform === "Windows" ? (
|
<span className="flex h-full items-center rounded-sm border border-gray-200 bg-gray-100 p-2">
|
||||||
<kbd className="rounded-sm border border-gray-200 bg-gray-100 px-2 py-1 text-sm font-medium text-gray-800">
|
<MacCommandIcon />
|
||||||
{key}
|
</span>
|
||||||
</kbd>
|
|
||||||
) : (
|
|
||||||
<span className="flex h-full items-center rounded-sm border border-gray-200 bg-gray-100 p-2">
|
|
||||||
<MacCommandIcon />
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
) : (
|
) : (
|
||||||
<kbd className="rounded-sm border border-gray-200 bg-gray-100 px-2 py-1 text-sm font-medium text-gray-800">
|
<kbd className="rounded-sm border border-gray-200 bg-gray-100 px-2 py-1 text-sm font-medium text-gray-800">
|
||||||
{key}
|
{key === "Ctrl" ? <MacCommandIcon /> : key}
|
||||||
</kbd>
|
</kbd>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -172,18 +165,12 @@ export const ShortcutsModal: React.FC<Props> = ({ isOpen, setIsOpen }) => {
|
||||||
{keys.split(",").map((key, index) => (
|
{keys.split(",").map((key, index) => (
|
||||||
<span key={index} className="flex items-center gap-1">
|
<span key={index} className="flex items-center gap-1">
|
||||||
{key === "Ctrl" ? (
|
{key === "Ctrl" ? (
|
||||||
platform === "Windows" ? (
|
<span className="flex h-full items-center rounded-sm border border-gray-200 bg-gray-100 p-2">
|
||||||
<kbd className="rounded-sm border border-gray-200 bg-gray-100 px-2 py-1 text-sm font-medium text-gray-800">
|
<MacCommandIcon />
|
||||||
{key}
|
</span>
|
||||||
</kbd>
|
|
||||||
) : (
|
|
||||||
<span className="flex h-full items-center rounded-sm border border-gray-200 bg-gray-100 p-2">
|
|
||||||
<MacCommandIcon />
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
) : (
|
) : (
|
||||||
<kbd className="rounded-sm border border-gray-200 bg-gray-100 px-2 py-1 text-sm font-medium text-gray-800">
|
<kbd className="rounded-sm border border-gray-200 bg-gray-100 px-2 py-1 text-sm font-medium text-gray-800">
|
||||||
{key}
|
{key === "Ctrl" ? <MacCommandIcon /> : key}
|
||||||
</kbd>
|
</kbd>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ export const WorkspaceHelpSection: FC<WorkspaceHelpSectionProps> = (props) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`flex w-full items-center justify-between self-baseline border-t bg-white px-6 py-2 ${
|
className={`flex w-full items-center justify-between self-baseline border-t bg-white px-6 py-2 ${
|
||||||
sidebarCollapse ? "flex-col" : ""
|
sidebarCollapse ? "flex-col-reverse" : ""
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue