diff --git a/config/config.php b/config/config.php index ca6ee9d..921ecc1 100644 --- a/config/config.php +++ b/config/config.php @@ -74,6 +74,16 @@ // The label color for the beacon. 'beaconLabelColor' => '#ffffff', + // Color applied to links the agent emits in chat. Defaults to a + // traditional blue (Tailwind blue-600) that reads well on the + // white message background; host apps typically override this in + // their published config to match brand color. + 'linkColor' => '#2563eb', + + // Whether agent-emitted links render with an underline. Combined + // with `linkColor` to give a familiar "this is a link" cue. + 'linkUnderline' => true, + // Height to use for embedded videos. 'videoHeight' => 160, diff --git a/resources/css/common.css b/resources/css/common.css index ac86c2f..7eb27dc 100644 --- a/resources/css/common.css +++ b/resources/css/common.css @@ -12,6 +12,22 @@ height: 100%; } +.sbm-fine-pointer-only { + display: none; +} + +@media (hover: hover) and (pointer: fine) { + .sbm-fine-pointer-only { + display: block; + } + .sbm-popup-chrome { + @apply rounded-lg border overflow-hidden; + } + .sbm-header-chrome.sbm-undocked { + @apply rounded-t-lg; + } +} + @layer components { .message-text { @apply min-w-0; @@ -80,5 +96,12 @@ tbody tr:nth-child(even) td { @apply bg-gray-50; } + a { + color: var(--sbm-link-color, #2563eb); + text-decoration: var(--sbm-link-decoration, underline); + } + a:hover { + opacity: 0.85; + } } } \ No newline at end of file diff --git a/resources/js/components/Chat.vue b/resources/js/components/Chat.vue index 521c9b8..5a70a49 100644 --- a/resources/js/components/Chat.vue +++ b/resources/js/components/Chat.vue @@ -1,11 +1,6 @@