some bugs
This commit is contained in:
@@ -521,7 +521,7 @@ export default function Editor({ editSlug }: Props) {
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setVimEnabled(v => !v)}
|
||||
className={`btn btn--sm${vimEnabled ? ' is-active' : ''}`}
|
||||
className={`btn btn--ghost btn--sm${vimEnabled ? ' is-active' : ''}`}
|
||||
title={vimEnabled ? 'Vim mode ON' : 'Vim mode OFF'}
|
||||
>
|
||||
{vimEnabled ? 'VIM' : 'vim'}
|
||||
@@ -529,7 +529,7 @@ export default function Editor({ editSlug }: Props) {
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setShowPreview(p => !p)}
|
||||
className={`btn btn--sm${showPreview ? ' is-active' : ''}`}
|
||||
className={`btn btn--ghost btn--sm${showPreview ? ' is-active' : ''}`}
|
||||
>
|
||||
{showPreview ? 'Hide Preview' : 'Show Preview'}
|
||||
</button>
|
||||
@@ -553,7 +553,7 @@ export default function Editor({ editSlug }: Props) {
|
||||
role="tab"
|
||||
aria-selected={mobileView === 'edit'}
|
||||
onClick={() => setMobileView('edit')}
|
||||
className={`btn btn--sm flex-1${mobileView === 'edit' ? ' is-active' : ''}`}
|
||||
className={`btn btn--ghost btn--sm flex-1${mobileView === 'edit' ? ' is-active' : ''}`}
|
||||
>
|
||||
Edit
|
||||
</button>
|
||||
@@ -562,7 +562,7 @@ export default function Editor({ editSlug }: Props) {
|
||||
role="tab"
|
||||
aria-selected={mobileView === 'preview'}
|
||||
onClick={() => setMobileView('preview')}
|
||||
className={`btn btn--sm flex-1${mobileView === 'preview' ? ' is-active' : ''}`}
|
||||
className={`btn btn--ghost btn--sm flex-1${mobileView === 'preview' ? ' is-active' : ''}`}
|
||||
>
|
||||
Preview
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user