Skip to content

Commit

Permalink
fix composer
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Oct 5, 2024
1 parent 76d63f9 commit 7238e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/view/com/composer/Composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ export const ComposePost = ({
)}
<View style={a.flex_1} />
<SelectLangBtn />
<CharProgress count={graphemeLength} />
<CharProgress count={graphemeLength} style={{width: 65}} />
</View>
</View>
<Prompt.Basic
Expand Down
3 changes: 2 additions & 1 deletion src/view/com/composer/char-progress/CharProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ProgressPie from 'react-native-progress/Pie'
import {MAX_GRAPHEME_LENGTH} from '#/lib/constants'
import {usePalette} from '#/lib/hooks/usePalette'
import {s} from '#/lib/styles'
import {atoms as a} from '#/alf'
import {Text} from '../../util/text/Text'

export function CharProgress({
Expand All @@ -28,7 +29,7 @@ export function CharProgress({
const textColor = count > maxLength ? '#e60000' : pal.colors.text
const circleColor = count > maxLength ? '#e60000' : pal.colors.link
return (
<View style={style}>
<View style={[a.flex_row, a.align_center, style]}>
<Text style={[s.mr10, s.tabularNum, {color: textColor}, textStyle]}>
{maxLength - count}
</Text>
Expand Down

0 comments on commit 7238e23

Please sign in to comment.