Address first round of feedback
- Flashcards: whole card flips on click (both sides), 3D turn, swipe-away on grading, streak chip and flame bursts, bigger cards on desktop, arrow keys for everything - Review and browse keep the sidebar on desktop - Quizzes: live practice score, partial-credit explanation, time limit for shared exams - Class page: items grouped by type inside each folder - Import: copyable, editable instructions for outside chatbots - Assistant: reads notes and links to library items Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
c59591ccb9
commit
aed14cd04f
13 changed files with 769 additions and 216 deletions
|
|
@ -540,6 +540,8 @@ export function Shell() {
|
|||
const location = useLocation();
|
||||
const { open: assistantOpen, seed } = useAssistantState();
|
||||
const onAssistantPage = location.pathname.startsWith('/assistant');
|
||||
// Study screens lay themselves out edge to edge and bring their own header and footer.
|
||||
const immersive = location.pathname === '/review' || /^\/decks\/[^/]+\/cram$/.test(location.pathname);
|
||||
|
||||
useHotkeys({
|
||||
'mod+k': (e) => {
|
||||
|
|
@ -578,8 +580,8 @@ export function Shell() {
|
|||
</a>
|
||||
<Sidebar onSearch={() => setPaletteOpen(true)} onNewClass={() => setClassDialog(true)} />
|
||||
<div className="flex min-w-0 flex-1 flex-col">
|
||||
<MobileNav onSearch={() => setPaletteOpen(true)} onNewClass={() => setClassDialog(true)} />
|
||||
<main id="main" tabIndex={-1} className="mx-auto w-full max-w-[1080px] flex-1 px-4 pt-6 pb-28 outline-none sm:px-8 lg:pt-10 lg:pb-16">
|
||||
{!immersive && <MobileNav onSearch={() => setPaletteOpen(true)} onNewClass={() => setClassDialog(true)} />}
|
||||
<main id="main" tabIndex={-1} className={cx('w-full flex-1 outline-none', !immersive && 'mx-auto max-w-[1080px] px-4 pt-6 pb-28 sm:px-8 lg:pt-10 lg:pb-16')}>
|
||||
<Outlet />
|
||||
</main>
|
||||
</div>
|
||||
|
|
@ -597,7 +599,7 @@ export function Shell() {
|
|||
</Suspense>
|
||||
</aside>
|
||||
)}
|
||||
{!showDrawer && !onAssistantPage && isDesktop && (
|
||||
{!showDrawer && !onAssistantPage && !immersive && isDesktop && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => assistant.open()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue