Skip to content

Commit

Permalink
Requested review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-solecki committed Jan 23, 2024
1 parent f28e82d commit fe4fd49
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/libs/SuggestionUtils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import CONST from '@src/CONST';

/** Trims first character of the string if it is a space */
/**
* Trims first character of the string if it is a space
*/
function trimLeadingSpace(str: string): string {
return str.startsWith(' ') ? str.slice(1) : str;
}
/** Checks if space is available to render large suggestion menu */
/**
* Checks if space is available to render large suggestion menu
*/
function hasEnoughSpaceForLargeSuggestionMenu(listHeight: number, composerHeight: number, totalSuggestions: number): boolean {
const maxSuggestions = CONST.AUTO_COMPLETE_SUGGESTER.MAX_AMOUNT_OF_VISIBLE_SUGGESTIONS_IN_CONTAINER;
const chatFooterHeight = CONST.CHAT_FOOTER_SECONDARY_ROW_HEIGHT + 2 * CONST.CHAT_FOOTER_SECONDARY_ROW_PADDING;
Expand Down

0 comments on commit fe4fd49

Please sign in to comment.