[react] fix: Various fixes for the measurement view and editor (#233)
Various fixes for the measurement view and editor: - Translate measurements in the measurement set view and align the measurements table properly - Display a question mark next to the measurements that links to the corresponding docs page This fixes a part of #226 Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/233 Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org> Co-authored-by: Jonathan Haas <haasjona@gmail.com> Co-committed-by: Jonathan Haas <haasjona@gmail.com>
This commit is contained in:
parent
c5b0daf390
commit
36da79afb6
10 changed files with 49 additions and 19 deletions
|
@ -25,8 +25,15 @@ export const AnchorLink = ({ children, id = '', title = false }) => (
|
|||
* @param {string} props.className - Any non-default CSS classes to apply
|
||||
* @param {string} props.style - Any non-default styles to apply
|
||||
*/
|
||||
export const Link = ({ href, title = false, children, className = linkClasses, style = {} }) => (
|
||||
<a href={href} className={className} title={title ? title : ''} style={style}>
|
||||
export const Link = ({
|
||||
href,
|
||||
title = false,
|
||||
children,
|
||||
className = linkClasses,
|
||||
target,
|
||||
style = {},
|
||||
}) => (
|
||||
<a href={href} target={target} className={className} title={title ? title : ''} style={style}>
|
||||
{children}
|
||||
</a>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue