fix composer
This commit is contained in:
@@ -908,7 +908,7 @@ export const ComposePost = ({
|
|||||||
)}
|
)}
|
||||||
<View style={a.flex_1} />
|
<View style={a.flex_1} />
|
||||||
<SelectLangBtn />
|
<SelectLangBtn />
|
||||||
<CharProgress count={graphemeLength} />
|
<CharProgress count={graphemeLength} style={{width: 65}} />
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<Prompt.Basic
|
<Prompt.Basic
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import ProgressPie from 'react-native-progress/Pie'
|
|||||||
import {MAX_GRAPHEME_LENGTH} from '#/lib/constants'
|
import {MAX_GRAPHEME_LENGTH} from '#/lib/constants'
|
||||||
import {usePalette} from '#/lib/hooks/usePalette'
|
import {usePalette} from '#/lib/hooks/usePalette'
|
||||||
import {s} from '#/lib/styles'
|
import {s} from '#/lib/styles'
|
||||||
|
import {atoms as a} from '#/alf'
|
||||||
import {Text} from '../../util/text/Text'
|
import {Text} from '../../util/text/Text'
|
||||||
|
|
||||||
export function CharProgress({
|
export function CharProgress({
|
||||||
@@ -28,7 +29,7 @@ export function CharProgress({
|
|||||||
const textColor = count > maxLength ? '#e60000' : pal.colors.text
|
const textColor = count > maxLength ? '#e60000' : pal.colors.text
|
||||||
const circleColor = count > maxLength ? '#e60000' : pal.colors.link
|
const circleColor = count > maxLength ? '#e60000' : pal.colors.link
|
||||||
return (
|
return (
|
||||||
<View style={style}>
|
<View style={[a.flex_row, a.align_center, style]}>
|
||||||
<Text style={[s.mr10, s.tabularNum, {color: textColor}, textStyle]}>
|
<Text style={[s.mr10, s.tabularNum, {color: textColor}, textStyle]}>
|
||||||
{maxLength - count}
|
{maxLength - count}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user