-
Notifications
You must be signed in to change notification settings - Fork 165
Display time "moves" during time update #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can’t reproduce in demo app, This might be a problem when component is used in another react app (which is where this issue was observed). Might be issue with CSS height/width of parent component(?) |
closing this, as CSS has moved on since, but can be reopened if anyone comes across it |
I also see the same behavior when adding the component to a different App |
You need to use a monospace font to avoid movement. |
ok, thanks @Gribbs and @bevand10, so a fix could be to add a ...
.currentTime {
...
font-family: 'Lucida Console', monospace;
}
.duration {
...
font-family: 'Lucida Console', monospace;
} This Don't want to get into fonts and UI details, but I am not sure tho how this will work, for example when adding into a parent app where we have BBC Reith fonts. Because of css specificity rules Just thinking out loud if there's a quick fix for this (cc @jamesdools ). |
in media player to stop moving while playing
The point with timecode display is that is should always be monospace. Even in a BBC scenario where Reith is used elsewhere, it should still be a monospace font otherwise it'll bounce around just as it does now - Reith does not have a monospace variant. It's because, to avoid horizontal movement, the width of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and : must be identical. |
* got storybook working tests not working yet * fixed tests using jest, and removed CRA dependency, updated babel config for babel 7 and stubbed css files for jest tests for css node modules * Added support for demo app in storybook * fixed eslint CRA had it's own linter internally, so added linting + dependencies * cleaned up export scripts in package.json * updated README * finalised refactor see PR description for more details * rename demo app editor to demoTranscript * bringing back style lint, and fixing lint in storybook config * updated with current master AWS adapter * linting * fix #132 playtime displaied double playtime on display is double of actual total playtime * temporary fix #73 monospace duration and current time in media player to stop moving while playing
* Task: added lerna * WIP: storybook conversion * mend * WIP: adding MediaPlayer * move TimedTextEditor, TranscriptEditor and adapters util to packages (#128) * moved TimedTextEditor and TranscriptEditor to packages also created stories, and package.json for each, but can't test them in storybook coz they have dependencies on adapters in Util folder * moved Util and demdemo app * got storybook working * added demo app to storybook * mend * Fix: commenting out demo * Changed repo packages folder structure (#129) * cleaned up adapters * changed folder structure * fixed timecode converter duplice module * made all packages private except for TranscriptEditor * working * "Monorepo" refactor spike remove lerna (#135) * got storybook working tests not working yet * fixed tests using jest, and removed CRA dependency, updated babel config for babel 7 and stubbed css files for jest tests for css node modules * Added support for demo app in storybook * fixed eslint CRA had it's own linter internally, so added linting + dependencies * cleaned up export scripts in package.json * updated README * finalised refactor see PR description for more details * rename demo app editor to demoTranscript * bringing back style lint, and fixing lint in storybook config * updated with current master AWS adapter * linting * fix #132 playtime displaied double playtime on display is double of actual total playtime * temporary fix #73 monospace duration and current time in media player to stop moving while playing * Feature: Added custom css loading to storybook (#136) * Resolved conflict iwth AWS adapter
Describe the bug
To Reproduce
Expected behavior
expect it not to move
Screenshots
Additional context
Might be a quick CSS fix?
The text was updated successfully, but these errors were encountered: