Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions sdk/ATTACHMENTS.md

This file was deleted.

2 changes: 1 addition & 1 deletion sdk/sandbox/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { OpenChatWidget } from "../../widget/src";

const chatApiUrl =
import.meta.env.VITE_CHAT_API_URL ?? "http://localhost:8787/api/chat/notion";
import.meta.env.VITE_CHAT_API_URL ?? "http://localhost:8787/api/chat/default";

export default function App() {
return (
Expand Down
20 changes: 10 additions & 10 deletions sdk/widget/src/components/ChatToggleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ type OpenChatWidgetToggleProps = {
};

const DEFAULT_LOGO_SRC = HELPFUL_CHAT_LOGO_DATA_URI;
const BUTTON_SIZE_PX = 68;
const ICON_SIZE_PX = 54;
const CLOSE_ICON_SIZE_PX = 22;
const MOBILE_BUTTON_SIZE_PX = 56;
const MOBILE_ICON_SIZE_PX = 42;
const MOBILE_CLOSE_ICON_SIZE_PX = 18;
const BUTTON_SIZE_PX = 62;
const ICON_SIZE_PX = 48;
const CLOSE_ICON_SIZE_PX = 20;
const MOBILE_BUTTON_SIZE_PX = 46;
const MOBILE_ICON_SIZE_PX = 32;
const MOBILE_CLOSE_ICON_SIZE_PX = 16;

function CloseIcon({ size }: { size: number }) {
return (
Expand Down Expand Up @@ -56,7 +56,7 @@ export const ChatToggleButton = React.forwardRef<
const closeIconSize = isMobile
? MOBILE_CLOSE_ICON_SIZE_PX
: CLOSE_ICON_SIZE_PX;
const offset = isMobile ? "12px" : "16px";
const offset = isMobile ? "10px" : "16px";
const hasUnread = !isOpen && unreadCount > 0;
const unreadLabel = unreadCount > 99 ? "99+" : String(unreadCount);

Expand Down Expand Up @@ -91,10 +91,10 @@ export const ChatToggleButton = React.forwardRef<
position: "absolute",
top: isMobile ? "-2px" : "0px",
right: isMobile ? "-2px" : "0px",
minWidth: isMobile ? "18px" : "20px",
height: isMobile ? "18px" : "20px",
minWidth: isMobile ? "16px" : "20px",
height: isMobile ? "16px" : "20px",
borderRadius: "9999px",
padding: "0 5px",
padding: isMobile ? "0 4px" : "0 5px",
background: "#ef4444",
color: "#ffffff",
fontSize: isMobile ? "10px" : "11px",
Expand Down
Loading