mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-09-02 09:34:33 +02:00
mobile UI improvement
This commit is contained in:
@@ -63,11 +63,24 @@ export function Fretboard({
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="fretboard-container" style={{ overflowX: 'auto', maxWidth: '100%', cursor: interactive ? 'pointer' : 'default' }}>
|
||||
<div className="fretboard-container" style={{
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
overflow: 'hidden',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
cursor: interactive ? 'pointer' : 'default'
|
||||
}}>
|
||||
<svg
|
||||
width={width}
|
||||
height={height}
|
||||
style={{ display: 'block', margin: '0 auto' }}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
maxHeight: '100%',
|
||||
display: 'block'
|
||||
}}
|
||||
>
|
||||
{/* Fretboard background */}
|
||||
<rect
|
||||
|
||||
Reference in New Issue
Block a user