Skip to content

Commit

Permalink
Various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
invpt committed Mar 28, 2023
1 parent 7ad99e5 commit 434579b
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/PoiPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default function PoiPanel({ poi, setPoi }: {
<div className="field">
<label htmlFor={`${id}-desc`}>Description</label>
<textarea
rows={8}
name="POI Description"
id={`${id}-desc`}
value={poi.desc}
Expand Down
2 changes: 1 addition & 1 deletion components/TourEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function TourEditor({ tour, setTour }: { tour: TourModel, setTour
return (
<div className={styles.TourEditor}>
<MapControllerContext.Provider value={mapController}>
<div style={{ display: panel.which === "tour" ? undefined : "none" }}>
<div className={styles.tourPanelContainer} style={{ display: panel.which === "tour" ? undefined : "none" }}>
<TourPanel
tour={tour}
setTour={setTour}
Expand Down
2 changes: 1 addition & 1 deletion components/TourPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function TourPanel({ tour, setTour, displayPanel }: {
<div className="field">
<label htmlFor={`${id}-desc`}>Description</label>
<textarea
rows={3}
rows={8}
name="Tour Description"
id={`${id}-desc`}
value={tour.desc}
Expand Down
2 changes: 2 additions & 0 deletions components/WaypointPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default function WaypointPanel({ waypoint, setWaypoint }: {
<div className="field">
<label htmlFor={`${id}-desc`}>Description</label>
<textarea
rows={8}
name="Waypoint Description"
id={`${id}-desc`}
value={waypoint.desc}
Expand Down Expand Up @@ -106,6 +107,7 @@ export default function WaypointPanel({ waypoint, setWaypoint }: {
<div className="field">
<label htmlFor={`${id}-transcript`}>Transcript</label>
<textarea
rows={8}
name="Narration Transcript"
id={`${id}-transcript`}
value={waypoint.transcript ?? ""}
Expand Down
2 changes: 1 addition & 1 deletion pages/project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function ProjectSidebar({ screen, setScreen }: {
function ProjectButtons() {
function handleExport() {
toast.promise(
exportProject(),
exportProject().catch(e => console.error(e)),
{
pending: "Exporting tour...",
success: "Tour successfully exported!",
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ enum ControlMode {
Route,
#[serde(rename = "path")]
Path,
#[serde(rename = "none")]
None,
}

#[derive(Serialize, Deserialize)]
Expand Down
6 changes: 6 additions & 0 deletions styles/TourEditor.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
display: grid;
grid-template-rows: 1fr;
grid-template-columns: auto 1fr;
height: 100vh;
}

.Subpanel {
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: 1fr;
height: 100vh;
}

.tourPanelContainer {
overflow: auto;
}

.subpanelBar {
Expand Down
1 change: 1 addition & 0 deletions styles/TourPanel.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
display: flex;
flex-direction: column;
gap: 5px;
overflow: auto;
}

.waypointsHeader {
Expand Down
1 change: 1 addition & 0 deletions styles/WaypointPanel.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
display: flex;
flex-direction: column;
gap: 5px;
overflow: auto;
}

.controlTypeSelector {
Expand Down

0 comments on commit 434579b

Please sign in to comment.