Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 80244bde

Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)

AnnotationItem selected text showing, other minor improvements

Zobrazit rozdíly:

webapp/components/annotation/AnnotationItem.tsx
12 12
} from '@ant-design/icons';
13 13
import { AnnotationContext } from '../../contexts/AnnotationContext';
14 14
import { ETagSentiment, TagInstanceInfo } from '../../api';
15
import { getTextMaxLength } from '../../utils/strings';
15 16

  
16 17
const { Option } = Select;
17 18

  
......
157 158
                                    <Col>
158 159
                                        <Row>
159 160
                                            <Col>Pozice: {occurrence.position}</Col>
161
                                            <Col>Délka: {occurrence.length}</Col>
160 162
                                        </Row>
161 163
                                        <Row>
162
                                            <Col>Délka: {occurrence.length}</Col>
164
                                            <i title={occurrence.selectedText ?? ''}>
165
                                                {getTextMaxLength(
166
                                                    occurrence.selectedText ?? '',
167
                                                    35
168
                                                )}
169
                                            </i>
163 170
                                        </Row>
164 171
                                        <Row>
165 172
                                            <Col
......
172 179
                                                <Input.TextArea
173 180
                                                    defaultValue={occurrence.note ?? ''}
174 181
                                                    onBlur={onChangeNote(occurrence)}
182
                                                    rows={1}
175 183
                                                />
176 184
                                            </Col>
177 185
                                        </Row>

Také k dispozici: Unified diff