@uniqbit/mate-core 0.17.0-canary.6 → 0.17.0-canary.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -372,6 +372,7 @@ function VaultEditor({ page, vault }: { page: StudioPage; vault: StudioVaultPage
|
|
|
372
372
|
data-vault-editor
|
|
373
373
|
data-vault-path={vault.open.path}
|
|
374
374
|
data-vault-token={vault.open.token}
|
|
375
|
+
{...(page.writable ? {} : { readOnly: true })}
|
|
375
376
|
spellCheck={false}
|
|
376
377
|
>
|
|
377
378
|
{vault.open.content}
|
|
@@ -372,6 +372,7 @@ ul.plain li:last-child { border-bottom: 0; }
|
|
|
372
372
|
.vault-warning { color: var(--warn); }
|
|
373
373
|
#vault-editor { display: block; width: 100%; min-height: 62vh; resize: vertical; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--prompt-bg); color: var(--prompt-text); font-family: var(--mono); font-size: .86rem; line-height: 1.6; }
|
|
374
374
|
#vault-editor:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
375
|
+
#vault-editor[readonly] { cursor: default; opacity: .85; }
|
|
375
376
|
.vault-incoming { display: grid; gap: 8px; margin-top: 16px; padding: 12px; border: 1px solid var(--warn); border-radius: 8px; background: var(--warn-soft); }
|
|
376
377
|
.vault-incoming pre { max-height: 220px; overflow: auto; margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: .78rem; }
|
|
377
378
|
@media (max-width: 800px) { .vault-layout { grid-template-columns: 1fr; } }
|