Skip to content

Commit db109ba

Browse files
Made suggested changes
1 parent daaaaee commit db109ba

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

packages/base/src/annotations/components/Annotation.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@ import { Message } from './Message';
1414
export interface IAnnotationProps {
1515
itemId: string;
1616
annotationModel: IAnnotationModel;
17-
rightPanelModel?: IJupyterGISModel;
17+
jgisModel?: IJupyterGISModel;
1818
children?: JSX.Element[] | JSX.Element;
1919
}
2020

2121
const Annotation: React.FC<IAnnotationProps> = ({
2222
itemId,
2323
annotationModel,
24-
rightPanelModel,
24+
jgisModel,
2525
children,
2626
}) => {
2727
const [messageContent, setMessageContent] = useState('');
28-
const jgisModel = rightPanelModel;
2928
const annotation = annotationModel.getAnnotation(itemId);
3029
const contents = useMemo(() => annotation?.contents ?? [], [annotation]);
3130

@@ -87,7 +86,7 @@ const Annotation: React.FC<IAnnotationProps> = ({
8786
<Button className="jp-mod-styled jp-mod-warn" onClick={handleDelete}>
8887
<FontAwesomeIcon icon={faTrash} />
8988
</Button>
90-
{rightPanelModel && (
89+
{jgisModel && (
9190
<Button
9291
className="jp-mod-styled jp-mod-accept"
9392
onClick={centerOnAnnotation}

packages/base/src/panelview/annotationPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class AnnotationsPanel extends Component<IAnnotationPanelProps> {
3434
return (
3535
<div>
3636
<Annotation
37-
rightPanelModel={this._jgisModel}
37+
jgisModel={this._jgisModel}
3838
annotationModel={this._annotationModel}
3939
itemId={id}
4040
/>

packages/base/style/shared/tabs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
outline: none;
6161
width: 100%;
6262
overflow-y: scroll;
63-
max-height: 600px;
63+
max-height: 480px;
6464
}
6565

6666
.jgis-tabs-content:focus-visible {

0 commit comments

Comments
 (0)