Skip to content

Commit

Permalink
add cursor styling (#9003)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahblair authored and freddyaboulton committed Aug 6, 2024
1 parent de33f3a commit 7efc36c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/chatbot/shared/ChatBot.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { Clear } from "@gradio/icons";
import type { SelectData, LikeData } from "@gradio/utils";
import type { MessageRole, ComponentMessage, ComponentData } from "../types";
import type { MessageRole } from "../types";
import { MarkdownCode as Markdown } from "@gradio/markdown";
import type { FileData, Client } from "@gradio/client";
import type { I18nFormatter } from "js/app/src/gradio_helper";
Expand Down Expand Up @@ -339,6 +339,7 @@
class:message-markdown-disabled={!render_markdown}
style:user-select="text"
class:selectable
style:cursor={selectable ? "pointer" : "default"}
style:text-align={rtl ? "right" : "left"}
on:click={() => handle_select(i, message)}
on:keydown={(e) => {
Expand Down

0 comments on commit 7efc36c

Please sign in to comment.