Skip to content

Commit

Permalink
fix: copied logs line break
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-menlo committed Apr 4, 2024
1 parent 52654b1 commit f8bbe16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/containers/ModalTroubleShoot/AppLogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const AppLogs = () => {
themes="outline"
className="bg-white dark:bg-secondary/50"
onClick={() => {
clipboard.copy(logs.slice(-50) ?? '')
clipboard.copy(logs.slice(-50).join('\n') ?? '')
}}
>
<div className="flex items-center space-x-2">
Expand Down
2 changes: 1 addition & 1 deletion web/containers/ModalTroubleShoot/DeviceSpecs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const DeviceSpecs = () => {
themes="outline"
className="bg-white dark:bg-secondary/50"
onClick={() => {
clipboard.copy(logs ?? '')
clipboard.copy(logs.join('\n') ?? '')
}}
>
<div className="flex items-center space-x-2">
Expand Down
2 changes: 1 addition & 1 deletion web/containers/ServerLogs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const ServerLogs = (props: ServerLogsProps) => {
themes="outline"
className="bg-white dark:bg-secondary/50"
onClick={() => {
clipboard.copy(logs.slice(-100) ?? '')
clipboard.copy(logs.slice(-100).join('\n') ?? '')
}}
>
<div className="flex items-center space-x-2">
Expand Down

0 comments on commit f8bbe16

Please sign in to comment.