Skip to content

Commit

Permalink
fix close icons
Browse files Browse the repository at this point in the history
last minute items
  • Loading branch information
timothycarambat committed Nov 18, 2024
1 parent d987b3c commit 5d3f721
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,17 @@ export default function UploadFile({
return (
<div>
<div
className={`w-[560px] border-2 border-dashed light:border-[#686C6F] rounded-2xl bg-theme-bg-primary transition-colors duration-300 light:bg-[#E0F2FE] p-3 ${
ready ? "cursor-pointer" : "cursor-not-allowed"
} hover:bg-theme-bg-secondary light:hover:bg-transparent`}
className={`w-[560px] border-2 border-dashed light:border-[#686C6F] rounded-2xl bg-theme-bg-primary transition-colors duration-300 p-3 ${
ready
? " light:bg-[#E0F2FE] cursor-pointer hover:bg-theme-bg-secondary light:hover:bg-transparent"
: "cursor-not-allowed"
}`}
{...getRootProps()}
>
<input {...getInputProps()} />
{ready === false ? (
<div className="flex flex-col items-center justify-center h-full">
<CloudArrowUp className="w-8 h-8 text-white/80" />
<CloudArrowUp className="w-8 h-8 text-white/80 light:invert" />
<div className="text-white text-opacity-80 text-sm font-semibold py-1">
Document Processor Unavailable
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Modals/ManageWorkspace/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const ManageWorkspace = ({ hideModal = noop, providedSlug = null }) => {
type="button"
className="z-29 text-white bg-transparent rounded-lg text-sm p-1.5 ml-auto inline-flex items-center bg-sidebar-button hover:bg-theme-modal-border hover:border-theme-modal-border hover:border-opacity-50 border-transparent border"
>
<X size={20} weight="bold" className="text-gray-300" />
<X size={20} weight="bold" className="text-white" />
</button>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default function ImportedSkillConfig({
setInputs({ ...inputs, [key]: e.target.value })
}
placeholder={props?.input?.placeholder || ""}
className="bg-transparent border border-white border-opacity-20 rounded-md p-2 text-white text-sm"
className="bg-transparent border border-white light:border-black rounded-md p-2 text-white text-sm"
/>
<p className="text-white text-opacity-60 text-xs font-medium py-1.5">
{props?.input?.hint}
Expand All @@ -162,7 +162,7 @@ export default function ImportedSkillConfig({
<button
onClick={handleSubmit}
type="button"
className="bg-blue-500 text-white rounded-md p-2"
className="bg-blue-500 text-white light:text-white rounded-md p-2"
>
Save
</button>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/GeneralSettings/Chats/ChatRow/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ const TextPreview = ({ text, closeModal }) => {
<button
onClick={closeModal}
type="button"
className="transition-all duration-300 text-gray-400 bg-transparent hover:border-white/60 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center bg-sidebar-button hover:bg-menu-item-selected-gradient hover:border-slate-100 hover:border-opacity-50 border-transparent border"
className="bg-transparent rounded-lg text-sm p-1.5 ml-auto inline-flex items-center bg-sidebar-button hover:bg-theme-modal-border hover:border-theme-modal-border hover:border-opacity-50 border-transparent border"
>
<X className="text-gray-300 text-lg" />
<X className="text-white text-lg" />
</button>
</div>
<div className="w-full p-6">
Expand Down
26 changes: 17 additions & 9 deletions frontend/src/pages/GeneralSettings/EmbedChats/ChatRow/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ const TextPreview = ({ text, closeModal }) => {
<button
onClick={closeModal}
type="button"
className="transition-all duration-300 text-gray-400 bg-transparent hover:border-white/60 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center bg-sidebar-button hover:bg-menu-item-selected-gradient hover:border-slate-100 hover:border-opacity-50 border-transparent border"
className="bg-transparent rounded-lg text-sm p-1.5 ml-auto inline-flex items-center bg-sidebar-button hover:bg-theme-modal-border hover:border-theme-modal-border hover:border-opacity-50 border-transparent border"
>
<X className="text-gray-300 text-lg" />
<X className="text-white text-lg" />
</button>
</div>
<div className="w-full p-6">
Expand Down Expand Up @@ -144,17 +144,21 @@ const ConnectionDetails = ({
if (verbose) {
return (
<>
<p className="text-xs text-slate-400">sessionID: {sessionId}</p>
<p className="text-xs text-theme-text-secondary">
sessionID: {sessionId}
</p>
{details.username && (
<p className="text-xs text-slate-400">username: {details.username}</p>
<p className="text-xs text-theme-text-secondary">
username: {details.username}
</p>
)}
{details.ip && (
<p className="text-xs text-slate-400">
<p className="text-xs text-theme-text-secondary">
client ip address: {details.ip}
</p>
)}
{details.host && (
<p className="text-xs text-slate-400">
<p className="text-xs text-theme-text-secondary">
client host URL: {details.host}
</p>
)}
Expand All @@ -165,10 +169,14 @@ const ConnectionDetails = ({
return (
<>
{details.username && (
<p className="text-xs text-slate-400">{details.username}</p>
<p className="text-xs text-theme-text-secondary">{details.username}</p>
)}
{details.ip && (
<p className="text-xs text-theme-text-secondary">{details.ip}</p>
)}
{details.host && (
<p className="text-xs text-theme-text-secondary">{details.host}</p>
)}
{details.ip && <p className="text-xs text-slate-400">{details.ip}</p>}
{details.host && <p className="text-xs text-slate-400">{details.host}</p>}
</>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ export const PermittedDomains = ({ defaultValue = [] }) => {
onBlur={handleBlur}
placeholder="https://mysite.com, https://anythingllm.com"
classNames={{
tag: "bg-blue-300/10 text-zinc-800 m-1",
tag: "bg-theme-settings-input-bg light:bg-black/10 bg-blue-300/10 text-zinc-800",
input:
"flex bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none p-2.5",
"flex p-1 !bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none",
}}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ export default function AddMemberModal({ closeModal, workspace, users }) {
<button
onClick={closeModal}
type="button"
className="transition-all duration-300 text-gray-400 bg-transparent hover:border-white/60 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center bg-sidebar-button hover:bg-menu-item-selected-gradient hover:border-slate-100 hover:border-opacity-50 border-transparent border"
className="bg-transparent rounded-lg text-sm p-1.5 ml-auto inline-flex items-center bg-sidebar-button hover:bg-theme-modal-border hover:border-theme-modal-border hover:border-opacity-50 border-transparent border"
data-modal-hide="staticModal"
>
<X className="text-gray-300 text-lg" />
<X className="text-white text-lg" />
</button>
</div>
<form onSubmit={handleUpdate}>
Expand Down

0 comments on commit 5d3f721

Please sign in to comment.