mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
feat(dialogs): port jump to note partially
This commit is contained in:
@@ -5,7 +5,7 @@ import type { CSSProperties } from "preact/compat";
|
||||
|
||||
interface ModalProps {
|
||||
className: string;
|
||||
title: string;
|
||||
title: string | ComponentChildren;
|
||||
size: "lg" | "sm";
|
||||
children: ComponentChildren;
|
||||
footer?: ComponentChildren;
|
||||
@@ -49,7 +49,11 @@ export default function Modal({ children, className, size, title, footer, onShow
|
||||
<div className={`modal-dialog modal-${size}`} style={style} role="document">
|
||||
<div className="modal-content">
|
||||
<div className="modal-header">
|
||||
<h5 className="modal-title">{title}</h5>
|
||||
{typeof title === "string" ? (
|
||||
<h5 className="modal-title">{title}</h5>
|
||||
) : (
|
||||
title
|
||||
)}
|
||||
{helpPageId && (
|
||||
<button className="help-button" type="button" data-in-app-help={helpPageId} title={t("modal.help_title")}>?</button>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user