diff --git a/products/ASC.Files/Client/src/components/QuickButtons.js b/products/ASC.Files/Client/src/components/QuickButtons.js index 1b576644c59..5f9ca8b7d81 100644 --- a/products/ASC.Files/Client/src/components/QuickButtons.js +++ b/products/ASC.Files/Client/src/components/QuickButtons.js @@ -26,6 +26,8 @@ const QuickButtons = ({ const isEditingWithFav = fileStatus === 33; const showFavorite = isFavorite || isNewWithFav || isEditingWithFav; + const isTile = viewAs === "tile"; + const colorSharedButton = shared ? "#3B72A7" : "#a3a9ae"; const iconShare = "/static/images/catalog.share.react.svg"; @@ -39,8 +41,7 @@ const QuickButtons = ({ : "/static/images/favorite.react.svg"; const tabletViewQuickButton = - viewAs !== "tile" && - ((sectionWidth > 500 && sectionWidth <= 1024) || isTablet); + !isTile && ((sectionWidth > 500 && sectionWidth <= 1024) || isTablet); const sizeQuickButton = tabletViewQuickButton ? "medium" : "small"; const displayShare = viewAs === "row" && (isMobile || sectionWidth <= 500); @@ -49,7 +50,7 @@ const QuickButtons = ({ return (