This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid jumping heights via text-overflow: ellipsis feat: page overview (#399) :heart: @Palmaswell * feat: add page overview * chore: update lock file * fix: update usage of arrow icons * fix: be consistent about event listener names * fix: consistently indicate texts can be edited * fix: truncate too long page titles * fix: adjust project title styling and page inset * fix: visually align chrome title * fix: adapt styling of view-switch * fix: ensure page list title clicks enable edit mode * feat: show view button only page detail view * fix: visually align chrome title * feat: wrap the page list for narrow viewports * fix: manage preview resizing lifecycle correctly feat: add floating-button component (#425) * feat: add floating-button component * fix: add plus icon to icon library feat: allow users to add new pages (#426) fix(highlight): include blur behaviour feat(preview-renderer): Rebase master status
- Loading branch information
Showing
61 changed files
with
1,751 additions
and
1,176 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { observer } from 'mobx-react'; | ||
import { Project } from '../../store/project'; | ||
import * as React from 'react'; | ||
import { AlvaView, Store } from '../../store/store'; | ||
import { ViewButton } from '../../lsg/patterns/view-switch'; | ||
|
||
@observer | ||
export class OverviewSwitchContainer extends React.Component { | ||
public render(): JSX.Element | null { | ||
const store = Store.getInstance(); | ||
const project: Project | undefined = store.getCurrentProject(); | ||
const page = store.getCurrentPage(); | ||
|
||
if (!project || !page) { | ||
return null; | ||
} | ||
|
||
const title = store.getActiveView() === AlvaView.Pages ? `Show "${page.getName()}"` : 'Pages'; | ||
const next = store.getActiveView() === AlvaView.Pages ? AlvaView.PageDetail : AlvaView.Pages; | ||
|
||
return <ViewButton onClick={() => store.setActiveView(next)} title={title} />; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.