Narrative views based on this chart
+Narrative charts based on this chart
-
{props.references.chartViews.map((chartView) => (
-
diff --git a/adminSiteClient/EditorTextTab.tsx b/adminSiteClient/EditorTextTab.tsx
index b259827bdd7..a8106b6e962 100644
--- a/adminSiteClient/EditorTextTab.tsx
+++ b/adminSiteClient/EditorTextTab.tsx
@@ -19,6 +19,7 @@ import {
} from "./Forms.js"
import { AbstractChartEditor } from "./AbstractChartEditor.js"
import { ErrorMessages } from "./ChartEditorTypes.js"
+import { isChartViewEditorInstance } from "./ChartViewEditor.js"
@observer
export class EditorTextTab<
@@ -74,6 +75,10 @@ export class EditorTextTab<
return this.props.errorMessages
}
+ @computed get showChartSlug() {
+ return !isChartViewEditorInstance(this.props.editor)
+ }
+
@computed get showAnyAnnotationFieldInTitleToggle() {
const { features } = this.props.editor
return (
@@ -139,19 +144,21 @@ export class EditorTextTab<
/>
)}
{this.showAnyAnnotationFieldInTitleToggle &&
} -- (grapher.slug = - grapher.slug === undefined - ? grapher.displaySlug - : undefined) - } - helpText="Human-friendly URL for this chart" - /> + {this.showChartSlug && ( + + (grapher.slug = + grapher.slug === undefined + ? grapher.displaySlug + : undefined) + } + helpText="Human-friendly URL for this chart" + /> + )} grapher.currentSubtitle} diff --git a/adminSiteClient/ImagesIndexPage.tsx b/adminSiteClient/ImagesIndexPage.tsx index 1de6114e21b..09a4400c863 100644 --- a/adminSiteClient/ImagesIndexPage.tsx +++ b/adminSiteClient/ImagesIndexPage.tsx @@ -281,12 +281,13 @@ function createColumns({ title: "Filename", dataIndex: "filename", key: "filename", - width: 300, + width: 200, }, { title: "Alt text", dataIndex: "defaultAlt", key: "defaultAlt", + width: "auto", sorter: (a, b) => a.defaultAlt && b.defaultAlt ? a.defaultAlt.localeCompare(b.defaultAlt) @@ -309,7 +310,7 @@ function createColumns({ a.originalWidth && b.originalWidth ? a.originalWidth - b.originalWidth : 0, - width: 100, + width: 50, }, { title: "Height", @@ -319,13 +320,13 @@ function createColumns({ a.originalHeight && b.originalHeight ? a.originalHeight - b.originalHeight : 0, - width: 100, + width: 50, }, { title: "Last updated", dataIndex: "updatedAt", key: "updatedAt", - width: 150, + width: 50, defaultSortOrder: "descend", sorter: (a, b) => a.updatedAt && b.updatedAt ? a.updatedAt - b.updatedAt : 0, @@ -334,7 +335,7 @@ function createColumns({ { title: "Owner", key: "userId", - width: 200, + width: 100, filters: [ { text: "Unassigned", @@ -375,7 +376,7 @@ function createColumns({ { title: "Action", key: "action", - width: 100, + width: 50, render: (_, image) => { const isDeleteDisabled = !!(usage && usage[image.id]?.length) return ( @@ -657,7 +658,12 @@ export function ImageIndexPage() { />