Skip to content

Commit

Permalink
fix(frontend/controller): add spacing to info panel
Browse files Browse the repository at this point in the history
fixes #493
  • Loading branch information
saihaj committed May 8, 2020
1 parent 5e3eb3d commit cb51a1f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
5 changes: 5 additions & 0 deletions app/frontend/src/Controller/ShabadInfo.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
color: var(--controller-text-color);
background-color: var(--controller-background-color);
}

.popver-buttons {
margin-top: 10px;
}

.db-viewer-button{
padding-right: 10px;
}
24 changes: 14 additions & 10 deletions app/frontend/src/Controller/ShabadInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,27 @@ const ShabadInfo = () => {
<span className="writer-name">{writerName}</span>
<br />

<Tooltip title="Report a mistake">
<Button
className="db-viewer-button"
size="small"
onClick={() => controller.openExternalUrl( getDbViewerUrl( lineId ) )}
>
<div className="popver-buttons">

<Tooltip title="Report a mistake">
<Button
className="db-viewer-button"
size="small"
onClick={() => controller.openExternalUrl( getDbViewerUrl( lineId ) )}
>
Open in DB Viewer
</Button>
</Tooltip>
</Button>
</Tooltip>

{shabad && (
{shabad && (
<Tooltip title="Click to copy this shabad">
<Button className="copy-shabad-button" size="small" onClick={onCopyClick}>
Copy Shabad
</Button>
</Tooltip>
)}
)}

</div>

</Typography>
</Popover>
Expand Down

0 comments on commit cb51a1f

Please sign in to comment.