mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00
Update abc js to version 6-beta (#975)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
1777ba848f
commit
bd31076928
6 changed files with 34 additions and 35 deletions
|
@ -1,10 +1,11 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import React, { useEffect, useRef } from 'react'
|
||||
import './abc.scss'
|
||||
|
||||
export interface AbcFrameProps {
|
||||
code: string
|
||||
|
@ -23,5 +24,5 @@ export const AbcFrame: React.FC<AbcFrameProps> = ({ code }) => {
|
|||
}).catch(() => { console.error('error while loading abcjs') })
|
||||
}, [code])
|
||||
|
||||
return <div ref={container} className={'bg-white text-center overflow-x-auto'}/>
|
||||
return <div ref={container} className={'abcjs-score bg-white text-center overflow-x-auto'}/>
|
||||
}
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
/*!
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
.abcjs-score {
|
||||
@import "../../../../style/variables.scss";
|
||||
|
||||
&, text {
|
||||
font-family: $font-family-base;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue