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

Fix MUI grid button style #107

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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