Web: Components: fixed hover style, enable download

This commit is contained in:
DmitrySychugov 2022-12-01 19:03:35 +05:00
parent 624428c262
commit 2725b65a5a

View File

@ -13,8 +13,6 @@ const ToolbarItem = styled.li`
&:hover {
cursor: pointer;
${(props) =>
props.noHover ? "background-color: none;" : "background-color: #4d4d4d;"}
}
svg {
@ -166,9 +164,9 @@ export default function ViewerToolbar(props) {
if (!props.scalable) {
toolbars = deleteToolbarFromKey(toolbars, ["scaleX", "scaleY"]);
}
if (!props.downloadable) {
toolbars = deleteToolbarFromKey(toolbars, ["download"]);
}
// if (!props.downloadable) {
// toolbars = deleteToolbarFromKey(toolbars, ["download"]);
// }
return (
<div>