Skip to content

Commit

Permalink
Update styles for buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
aahung committed May 29, 2024
1 parent 1bce963 commit b37772f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ commands for quick API testing and integration.

<img alt="screenshot" src="./screenshots/2.png" style="max-width: 100%" />

<img alt="screenshot" src="./screenshots/3.png" style="max-width: 100%" />

## Additional configuration on Firefox

Firefox by default doesn't grant `host_permission` for manifest V3 extensions
Expand Down
Binary file modified screenshots/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/inspect-resource-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useQuery } from "@tanstack/react-query";
import { TwilioResource } from "../twilio-resources";
import { Tooltip } from "react-tooltip";
import Modal from "./modal";
import { GiMagicPortal } from "react-icons/gi";

interface InspectResourceButtonProperties {
resource: TwilioResource;
Expand All @@ -18,7 +19,7 @@ const InspectResourceButton: React.FC<InspectResourceButtonProperties> = ({
return (
<>
<button className={`inspect-${resource.sid}`} onClick={openModal}>
Inspect
<GiMagicPortal />
</button>
<Tooltip anchorSelect={`.inspect-${resource.sid}`} place="top">
Click to inspect {resource.getName()}
Expand Down
8 changes: 4 additions & 4 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ const setupResourceDetailInfoButtons = debounce(() => {
const parent = link.parentElement;
const ptContainer = parent.querySelector(".pt-root");
if (!ptContainer) {
const div = document.createElement("div");
div.classList.add("pt-root");
parent.append(div);
createRoot(div).render(
const span = document.createElement("span");
span.classList.add("pt-root");
link.before(span);
createRoot(span).render(
<QueryClientProvider client={QUERY_CLIENT}>
<InspectResourceButton resource={twilioResource} />
</QueryClientProvider>,
Expand Down

0 comments on commit b37772f

Please sign in to comment.