Forum: answers to me as the only count, reply box in the branch, keyboard-safe inputs
- The "Követett" tab becomes "Válaszok": its count is the unread answers to the member (a reply to their post, a first-level reply in their thread, or a post naming them), listed on /forum/valaszok with "Mind olvasott"; the followed threads are its second view. The other counts are gone from the menu; listeners see the waiting threads on their card on the front page. - Replying to a post opens the box at the bottom of its branch and scrolls there; another branch moves it (with the text typed so far). - Phones: while typing, the forum's bottom menu and floating bars step aside and the box with its send button is scrolled above the keyboard (KeyboardSafe, site-wide; Android resizes the page for the keyboard). - The "Meghallgató" badge is now "Kísérő", with a new icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -87,7 +87,7 @@ function SkyCard({ sky }: { sky: SkyNow }) {
|
||||
export default async function ForumHomePage() {
|
||||
const [home, sky] = await Promise.all([forumGet<ForumHome>("/v1/forum/home"), loadSky()]);
|
||||
if (!home.ok) notFound();
|
||||
const { viewer, followed, topics, unanswered, hot } = home.data;
|
||||
const { viewer, replies, waiting, topics, unanswered, hot } = home.data;
|
||||
|
||||
return (
|
||||
<div className="fh fh-home">
|
||||
@@ -123,17 +123,17 @@ export default async function ForumHomePage() {
|
||||
</p>
|
||||
)}
|
||||
|
||||
{followed && followed.new_replies > 0 && (
|
||||
<Link href="/forum/kovetett" className="fh-banner o-2">
|
||||
{replies !== null && replies > 0 && (
|
||||
<Link href="/forum/valaszok" className="fh-banner o-2">
|
||||
<span>
|
||||
<strong>{followed.new_replies} új válasz</strong> a követett szálaidban
|
||||
<strong>{replies === 1 ? "1 új válasz" : `${replies} új válasz`}</strong> érkezett neked
|
||||
</span>
|
||||
<span aria-hidden="true">›</span>
|
||||
</Link>
|
||||
)}
|
||||
|
||||
{unanswered.length > 0 && (
|
||||
<section className="fh-section o-4" aria-labelledby="fh-waiting">
|
||||
<section className="fh-section o-4" id="varnak" aria-labelledby="fh-waiting">
|
||||
<div className="fh-section-head">
|
||||
<h2 id="fh-waiting">Várják a válaszod</h2>
|
||||
<span className="hint">még senki nem válaszolt</span>
|
||||
@@ -267,6 +267,13 @@ export default async function ForumHomePage() {
|
||||
<RankBadge rank={viewer.member.rank} name={viewer.member.rank_name} />
|
||||
</span>
|
||||
</div>
|
||||
{waiting !== null && waiting > 0 && (
|
||||
<Link href="#varnak" className="fh-me-waiting">
|
||||
{waiting === 1
|
||||
? "1 meghallgatást kérő szál vár válaszra"
|
||||
: `${waiting} meghallgatást kérő szál vár válaszra`}
|
||||
</Link>
|
||||
)}
|
||||
<div className="fh-me-actions">
|
||||
<Link href="/forum/uj" className="btn btn-primary btn-sm">
|
||||
Új szál
|
||||
|
||||
Reference in New Issue
Block a user