fix(ui): dynamic suggestion text and borders contrast, cache busting
Some checks failed
BotUI CI / build (push) Failing after 5s
Some checks failed
BotUI CI / build (push) Failing after 5s
This commit is contained in:
parent
84684c6687
commit
093f417ff7
2 changed files with 4 additions and 4 deletions
|
|
@ -555,9 +555,9 @@ footer {
|
|||
.suggestion-button {
|
||||
padding: 6px 12px;
|
||||
border-radius: 20px;
|
||||
border: 2px solid var(--chat-color2, #002147);
|
||||
border: 2px solid var(--chat-color1, #002147);
|
||||
background: var(--chat-color2, #002147);
|
||||
color: var(--chat-fg2, #ffffff);
|
||||
color: var(--chat-fg2, var(--text, #ffffff));
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<link rel="stylesheet" href="/suite/chat/chat.css" />
|
||||
<link rel="stylesheet" href="/suite/chat/chat.css?v=3" />
|
||||
<link rel="stylesheet" href="/suite/css/markdown-message.css" />
|
||||
|
||||
<div class="chat-layout" id="chat-app">
|
||||
|
|
@ -944,7 +944,7 @@
|
|||
function getContrastYIQ(hexcolor) {
|
||||
if (!hexcolor || typeof hexcolor !== 'string') return '#ffffff';
|
||||
hexcolor = hexcolor.replace("#", "");
|
||||
if (hexcolor.length === 3) hexcolor = hexcolor.split('').map(function(c) { return c + c; }).join('');
|
||||
if (hexcolor.length === 3) hexcolor = hexcolor.split('').map(function (c) { return c + c; }).join('');
|
||||
if (hexcolor.length !== 6) return '#ffffff';
|
||||
var r = parseInt(hexcolor.substr(0, 2), 16);
|
||||
var g = parseInt(hexcolor.substr(2, 2), 16);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue