Skip to content

Commit

Permalink
Fix line breaking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zjkmxy committed Dec 7, 2023
1 parent f5559a8 commit eb0fba9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/connect/nfd-websocket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function NfdWebsocket(props: {
inputProps={{
style: {
"font-family": '"Roboto Mono", ui-monospace, monospace',
"white-space": "nowrap"
"white-space": "pre"
}
}}
value={safebagText()}
Expand Down
2 changes: 1 addition & 1 deletion src/components/share-latex/share-latex/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function ShareLatexComponent(
inputProps={{
style: {
"font-family": '"Roboto Mono", ui-monospace, monospace',
"white-space": "nowrap"
"white-space": "pre"
}
}}
// disabled={readOnly()} // disabled not working with multiline
Expand Down
2 changes: 1 addition & 1 deletion src/components/workspace/app-namespace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default function AppNamespace(props: {
inputProps={{
style: {
"font-family": '"Roboto Mono", ui-monospace, monospace',
"white-space": "nowrap"
"white-space": "pre"
}
}}
// disabled={readOnly()} // disabled not working with multiline
Expand Down
2 changes: 1 addition & 1 deletion src/components/workspace/boot-safebag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default function BootSafebag(props: {
inputProps={{
style: {
"font-family": '"Roboto Mono", ui-monospace, monospace',
"white-space": "nowrap"
"white-space": "pre"
}
}}
disabled={readOnly()}
Expand Down
2 changes: 1 addition & 1 deletion src/components/workspace/own-certificate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function OwnCertificate(props: {
// readOnly: true, // readOnly does not work with multiline
style: {
"font-family": '"Roboto Mono", ui-monospace, monospace',
"white-space": "nowrap"
"white-space": "pre"
},
}}
value={certText()}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/opfs-ponyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getOriginPrivateDirectory } from 'file-system-access'
import indexedDbAdapter from 'file-system-access/lib/adapters/indexeddb'

export const openRoot: () => Promise<FileSystemDirectoryHandle> = (() => {
if (FileSystemFileHandle.prototype.createWritable !== undefined) {
if (globalThis.FileSystemFileHandle?.prototype?.createWritable !== undefined) {
// Normal browsers
return getOriginPrivateDirectory
} else {
Expand Down

0 comments on commit eb0fba9

Please sign in to comment.