-
Notifications
You must be signed in to change notification settings - Fork 1
Improve docs copy functionality: move from header to content area with enhanced 'Ask AI' button #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jhaynie
merged 13 commits into
main
from
devin/1754512143-improve-docs-copy-functionality
Aug 7, 2025
Merged
Improve docs copy functionality: move from header to content area with enhanced 'Ask AI' button #257
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e47380f
Improve docs copy functionality: move from header to content area wit…
devin-ai-integration[bot] 78e653c
Update copy button to match Turso example: move to header with 'Copy …
devin-ai-integration[bot] 31b7e90
Position Copy page button inline with title to match Turso example
devin-ai-integration[bot] dafd78f
Implement segmented button with localStorage persistence and proper A…
devin-ai-integration[bot] 8b04943
Update Claude icon with official Simple Icons SVG and fix flash by hi…
devin-ai-integration[bot] 17b5f59
Fix mobile functionality for copy page button
devin-ai-integration[bot] a3f8239
Fix mobile layout: prevent copy button from squashing title
devin-ai-integration[bot] 46aaf28
Fix segmented button border styling on mobile
devin-ai-integration[bot] 598da44
Fix segmented button width on mobile
devin-ai-integration[bot] e79efb2
Hide copy button on mobile using responsive breakpoints
devin-ai-integration[bot] da133c4
Reduce padding on segmented button for more compact appearance
devin-ai-integration[bot] 52b2810
Fix segmented button dropdown trigger behavior
devin-ai-integration[bot] c11374c
Update ChatGPT and Claude URLs to reference docs page instead of send…
devin-ai-integration[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
|
||
interface ClaudeIconProps { | ||
className?: string; | ||
size?: number; | ||
} | ||
|
||
export function ClaudeIcon({ className = "w-5 h-5", size }: ClaudeIconProps) { | ||
return ( | ||
<svg | ||
className={className} | ||
width={size} | ||
height={size} | ||
fill="currentColor" | ||
viewBox="0 0 24 24" | ||
role="img" | ||
aria-label="Claude" | ||
> | ||
<title>Claude</title> | ||
<path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"/> | ||
</svg> | ||
); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Fix size prop handling to properly override default className.
When the
size
prop is provided, it should override the width/height from the defaultclassName
. Currently, both the className (w-5 h-5) and size prop are applied simultaneously, which may cause conflicts.📝 Committable suggestion
🤖 Prompt for AI Agents