Skip to content

Commit

Permalink
fix: use fixed size for time numbers (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
ambar authored Mar 28, 2022
1 parent da2cb55 commit 301c660
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Demo</title>
<style>
body {
font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;
}
</style>
</head>
<body>
<div id="app"></div>
Expand Down
1 change: 1 addition & 0 deletions packages/griffith/src/components/Controller.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default StyleSheet.create({
fontSize: '0.875em',
color: 'rgba(255, 255, 255, 0.9)',
boxSizing: 'content-box',
fontVariantNumeric: 'tabular-nums',
},

labelButton: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`CombinedTimeItem get CombinedTimeItem component 1`] = `
<div>
<div class="time_i860ms-o_O-fullScreenedTime_1xxtrer">00:06 / 03:02</div>
<div class="time_1n8zam0-o_O-fullScreenedTime_1xxtrer">00:06 / 03:02</div>
</div>
`;

0 comments on commit 301c660

Please sign in to comment.