Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #107 from gtardif/fix_MUI_button_style
Browse files Browse the repository at this point in the history
Fix MUI grid button style
  • Loading branch information
gtardif authored May 16, 2023
2 parents f4aecf3 + e0bb942 commit 91f775b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ LABEL org.opencontainers.image.title="Volumes Backup & Share" \
org.opencontainers.image.vendor="Docker Inc." \
com.docker.desktop.extension.api.version=">= 0.2.3" \
com.docker.extension.screenshots="[ \
{\"alt\": \"Home page - list of volumes\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/1-table.png\"}, \
{\"alt\": \"Import data into a new volume\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/2-import-new.png\"}, \
{\"alt\": \"Export volume dialog\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/3-export.png\"}, \
{\"alt\": \"Transfer volume to another host\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/4-transfer.png\"}, \
{\"alt\": \"Clone volume dialog\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/5-clone.png\"}, \
{\"alt\": \"Delete volume dialog\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/6-delete.png\"} \
{\"alt\": \"Home page - list of volumes\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/1-table.png\"}, \
{\"alt\": \"Import data into a new volume\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/2-import-new.png\"}, \
{\"alt\": \"Export volume dialog\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/3-export.png\"}, \
{\"alt\": \"Transfer volume to another host\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/4-transfer.png\"}, \
{\"alt\": \"Clone volume dialog\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/5-clone.png\"}, \
{\"alt\": \"Delete volume dialog\", \"url\": \"https://raw.githubusercontent.com/docker/volumes-backup-extension/main/docs/images/6-delete.png\"} \
]" \
com.docker.extension.detailed-description="<p>With Volumes Backup & Share you can easily create copies of your volumes and also share them with others through SSH or pushing them to a registry.</p> \
<h2 id="-features">✨ What can you do with this extension?</h2> \
Expand All @@ -88,11 +88,11 @@ LABEL org.opencontainers.image.title="Volumes Backup & Share" \
"\
com.docker.extension.publisher-url="https://www.docker.com/" \
com.docker.extension.additional-urls="[ \
{\"title\":\"Support\", \"url\":\"https://github.com/docker/volumes-backup-extension/issues\"} \
{\"title\":\"Support\", \"url\":\"https://github.com/docker/volumes-backup-extension/issues\"} \
]" \
com.docker.desktop.extension.icon="https://raw.githubusercontent.com/docker/volumes-backup-extension/main/icon.svg" \
com.docker.extension.changelog="<ul>\
<li>Fixed an issue with notifications and the new Design System.</li> \
<li>Fixed style on grid buttons.</li> \
</ul>" \
com.docker.extension.categories="volumes"

Expand Down
20 changes: 6 additions & 14 deletions ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,12 @@ const ddClient = createDockerDesktopClient();

function CustomToolbar() {
return (
<GridToolbarContainer
sx={{
"& .MuiButton-root": {
color: (theme) => theme.palette.docker.grey[500],
textTransform: "uppercase",
"&:hover": {
backgroundColor: (theme) => theme.palette.action.hover,
},
},
}}
>
<GridToolbarColumnsButton />
<GridToolbarFilterButton />
<GridToolbarDensitySelector />
<GridToolbarContainer>
<GridToolbarColumnsButton variant="text" />
<GridToolbarFilterButton
componentsProps={{ button: { variant: "text" } }}
/>
<GridToolbarDensitySelector variant="text" />
</GridToolbarContainer>
);
}
Expand Down

0 comments on commit 91f775b

Please sign in to comment.