Skip to content
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

style: Increase answer size in poll results annotation #19711

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions bigbluebutton-html5/imports/ui/components/poll/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { escapeHtml } from '/imports/utils/string-utils';
import { defineMessages } from 'react-intl';

const POLL_AVATAR_COLOR = '#3B48A9';
const MAX_POLL_RESULT_BARS = 20;
const MAX_POLL_RESULT_KEY_LENGTH = 10;
const MAX_POLL_RESULT_BARS = 10;
const MAX_POLL_RESULT_KEY_LENGTH = 30;
const POLL_BAR_CHAR = '\u220E';

// 'YN' = Yes,No
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const formatAnnotations = (annotations, intl, curPageId, currentPresentationPage
}).join('\n');

// Text measurement estimation
const averageCharWidth = 16;
const averageCharWidth = 14;
const lineHeight = 32;

const annotationWidth = longestLine * averageCharWidth; // Estimate width
Expand Down