From 458029351ba8269f4bc0dff09563b2cdce3df8dc Mon Sep 17 00:00:00 2001
From: mirdukkkkk
+ Пусто
+
diff --git a/src/components/PixelInfo/PixelInfo.module.css b/src/components/PixelInfo/PixelInfo.module.css
index d04862a..a94d757 100644
--- a/src/components/PixelInfo/PixelInfo.module.css
+++ b/src/components/PixelInfo/PixelInfo.module.css
@@ -2,24 +2,26 @@
background-color: var(--window-background);
border-radius: 4px;
padding: 5px 10px;
- animation: appear 0.2s ease-in-out forwards;
+ /* animation: appear 0.2s ease-in-out forwards; */
}
+.empty {
+ opacity: 0;
+}
+
.tag::before {
content: '#';
color: var(--grey-text);
margin-inline: 5px;
}
-@keyframes appear {
+/* @keyframes appear {
from {
opacity: 0;
- /* transform: scale(0.9); */
}
to {
opacity: 1;
- /* transform: scale(1); */
}
-}
\ No newline at end of file
+} */
\ No newline at end of file
diff --git a/src/components/PixelInfo/PixelInfo.tsx b/src/components/PixelInfo/PixelInfo.tsx
index 6260e3c..2441fa4 100644
--- a/src/components/PixelInfo/PixelInfo.tsx
+++ b/src/components/PixelInfo/PixelInfo.tsx
@@ -5,7 +5,11 @@ import styles from "./PixelInfo.module.css";
export function PixelInfo() {
const coords = useContext(CoordinatesContext);
- if (coords.info.value === null) return null;
+ if (coords.info.value === null) {
+ return