diff --git a/app/src/plugins/app/_theme/global.sass b/app/src/plugins/app/_theme/global.sass
index 11f4eb7..417d458 100644
--- a/app/src/plugins/app/_theme/global.sass
+++ b/app/src/plugins/app/_theme/global.sass
@@ -106,8 +106,42 @@ input[type="time"]::-webkit-calendar-picker-indicator
height: 40px !important
.server-links
+ background: rgba(127, 57, 251, 1)
+ padding: 4px 5px
+
a
- text-decoration: underline
+ color: #fff
+
+.copy-btn
+ position: absolute
+ right: 0
+ width: 10%
+ height: 100%
+ text-align: center
+ bottom: 0
+ border-top-right-radius: 9999px
+ border-bottom-right-radius: 9999px
+ padding-top: 4px
+ background: #808080
+ color: #fff
+
+ &:hover
+ cursor: pointer
+ background: #666666
+
+.copying-btn
+ position: absolute
+ right: 0
+ width: 10%
+ height: 100%
+ text-align: center
+ bottom: 0
+ border-top-right-radius: 9999px
+ border-bottom-right-radius: 9999px
+ padding-top: 4px
+ background: rgb(76, 175, 80)
+ color: #fff
+ transition: background 0.3s ease, color 0.3s ease
@media (max-width: 534px)
.mobile-view
diff --git a/app/src/plugins/tm@_utils/server-links.utils.ts b/app/src/plugins/tm@_utils/server-links.utils.ts
index 2726aee..a6a8be6 100644
--- a/app/src/plugins/tm@_utils/server-links.utils.ts
+++ b/app/src/plugins/tm@_utils/server-links.utils.ts
@@ -12,35 +12,35 @@ export function getServerLinks(description) {
const text = p.textContent.trim()
if (os === 'mac' && text.startsWith('smb://')) {
- links.add(`${text}`)
+ links.add(text)
} else if (os === 'win' && text.startsWith('\\\\')) {
- links.add(`${text}`)
+ links.add(`${text.replace(/\//g, '\\')}`)
} else if (os === 'mac' && text.startsWith('\\\\')) {
const smbLink = 'smb:' + text.replace(/\\/g, '/')
- links.add(`${smbLink}`)
+ links.add(smbLink)
} else if (os === 'win' && text.startsWith('smb://')) {
const windowsLink = text.replace(/^smb:/, '').replace(/\//g, '\\')
- links.add(`${windowsLink}`)
+ links.add(`${windowsLink}`)
}
const anchor = p.querySelector('a')
if (anchor) {
const href = anchor.getAttribute('href')
if (os === 'mac' && href.startsWith('smb://')) {
- links.add(`${href}`)
+ links.add(href)
} else if (os === 'win' && href.startsWith('\\\\')) {
- links.add(`${href}`)
+ links.add(`${href.replace(/\//g, '\\')}`)
} else if (os === 'mac' && href.startsWith('\\\\')) {
const smbLink = 'smb:' + href.replace(/\\/g, '/')
- links.add(`${smbLink}`)
+ links.add(smbLink)
} else if (os === 'win' && href.startsWith('smb://')) {
const windowsLink = href.replace(/^smb:/, '').replace(/\//g, '\\')
- links.add(`${windowsLink}`)
+ links.add(`${windowsLink}`)
}
}
})
- return Array.from(links).join('
')
+ return Array.from(links)
}
export function detectOS() {
diff --git a/app/src/plugins/tm@modal/_components/read-only/z-description.vue b/app/src/plugins/tm@modal/_components/read-only/z-description.vue
index eae2fc0..57738af 100644
--- a/app/src/plugins/tm@modal/_components/read-only/z-description.vue
+++ b/app/src/plugins/tm@modal/_components/read-only/z-description.vue
@@ -4,11 +4,15 @@
-
Odkazy na server
- +Copy
+ +Popis mastertasku
@@ -16,7 +20,7 @@