mobile UI improvement

This commit is contained in:
2025-12-27 16:45:51 +01:00
parent cc87367029
commit 00a2de2bad
3 changed files with 176 additions and 93 deletions

View File

@@ -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