fix: copied logs line break (#2603)
This commit is contained in:
parent
c4da1cbc90
commit
7f92a5aef0
@ -45,7 +45,7 @@ const AppLogs = () => {
|
|||||||
themes="outline"
|
themes="outline"
|
||||||
className="bg-white dark:bg-secondary/50"
|
className="bg-white dark:bg-secondary/50"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
clipboard.copy(logs.slice(-50) ?? '')
|
clipboard.copy(logs.slice(-50).join('\n') ?? '')
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
|
|||||||
@ -32,7 +32,7 @@ const DeviceSpecs = () => {
|
|||||||
themes="outline"
|
themes="outline"
|
||||||
className="bg-white dark:bg-secondary/50"
|
className="bg-white dark:bg-secondary/50"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
clipboard.copy(logs ?? '')
|
clipboard.copy(logs.join('\n') ?? '')
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
|
|||||||
@ -75,7 +75,7 @@ const ServerLogs = (props: ServerLogsProps) => {
|
|||||||
themes="outline"
|
themes="outline"
|
||||||
className="bg-white dark:bg-secondary/50"
|
className="bg-white dark:bg-secondary/50"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
clipboard.copy(logs.slice(-100) ?? '')
|
clipboard.copy(logs.slice(-100).join('\n') ?? '')
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user