added border on post on feed

This commit is contained in:
SlimusMinus
2026-08-26 01:13:36 +03:00
parent f6e3ab811d
commit 0041f2cb74
5 changed files with 56 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
// src/components/AuthModal.jsx
import { useState } from "react";
import { useState, useEffect } from "react";
import { useTranslation } from 'react-i18next';
import CloseIcon from "./icons/CloseIcon";
import { useAuthContext } from "../context/AuthContext";
@@ -14,6 +14,12 @@ export default function AuthModal({ onClose }) {
const [mode, setMode] = useState("login"); // "login" | "register"
const { login: saveAuth } = useAuthContext();
useEffect(() => {
const prev = document.body.style.overflow;
document.body.style.overflow = "hidden";
return () => { document.body.style.overflow = prev; };
}, []);
return (
<div className="f-modal-bg auth-modal-bg" onClick={e => e.target === e.currentTarget && onClose()}>
<div className="f-modal auth-modal">