Skip to content

Commit

Permalink
move icon in front of text in buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed Jun 3, 2024
1 parent 9046aba commit 2bf962e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/web/ui/src/features/component/ComponentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ export const ComponentView: FC<ComponentViewProps> = (props) => {

<div className={styles.docsLink}>
<a href={`https://grafana.com/docs/alloy/latest/reference/components/${props.component.name}`}>
Documentation <FontAwesomeIcon icon={faLink} />
<FontAwesomeIcon icon={faLink} /> Documentation
</a>
</div>

<div className={styles.debugLink}>
<a href={`debug/${pathJoin([props.component.moduleID, props.component.localID])}`}>
Live debugging <FontAwesomeIcon icon={faBug} />
<FontAwesomeIcon icon={faBug} /> Live debugging
</a>
</div>

Expand Down
8 changes: 4 additions & 4 deletions internal/web/ui/src/pages/LiveDebugging.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ function PageLiveDebugging() {
return (
<div className={styles.debugLink}>
<button className={styles.stopButton} onClick={() => setEnabled(false)}>
Stop <FontAwesomeIcon icon={faStop} />
<FontAwesomeIcon icon={faStop} /> Stop
</button>
</div>
);
}
return (
<div className={styles.debugLink}>
<button className={styles.resumeButton} onClick={() => setEnabled(true)}>
Resume <FontAwesomeIcon icon={faRoad} />
<FontAwesomeIcon icon={faRoad} /> Resume
</button>
</div>
);
Expand Down Expand Up @@ -93,12 +93,12 @@ function PageLiveDebugging() {
{toggleEnableButton()}
<div className={styles.debugLink}>
<button className={styles.clearButton} onClick={() => setData([])}>
Clear <FontAwesomeIcon icon={faBroom} />
<FontAwesomeIcon icon={faBroom} /> Clear
</button>
</div>
<div className={styles.debugLink}>
<button className={styles.copyButton} onClick={copyDataToClipboard}>
Copy <FontAwesomeIcon icon={faCopy} />
<FontAwesomeIcon icon={faCopy} /> Copy
</button>
</div>
</>
Expand Down

0 comments on commit 2bf962e

Please sign in to comment.