Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f22a2126

Přidáno uživatelem Michal Schwob před více než 1 rok

FIX: colors fix
re #10896

Zobrazit rozdíly:

src/components/notes/NotesListView.tsx
1
import { VStack, Box, Text, HStack, ScrollView, Flex, Button, CloseIcon, IconButton, TextArea, useToast } from "native-base";
1
import {
2
    VStack,
3
    Box,
4
    Text,
5
    HStack,
6
    ScrollView,
7
    Flex,
8
    Button,
9
    CloseIcon,
10
    IconButton,
11
    TextArea,
12
    useToast,
13
    KeyboardAvoidingView
14
} from "native-base";
2 15
import { Note } from "../../types/note";
3 16
import NoteView from "./NoteView";
4 17
import { MessageIcon } from "../general/Icons";
......
99 112
    };
100 113

  
101 114
    return (
115
        <KeyboardAvoidingView
116
            h={ {lg: "auto"} }
117
            behavior={ "padding" }
118
            keyboardVerticalOffset={ 600 }
119
            mb={ 2 }
120
        >
102 121
        <VStack >
103 122
            <Box height={props.height - (replyingTo ? 40 : 0) ?? undefined} marginBottom={2}>
104 123
                {/* Notes */}
......
146 165

  
147 166
                    {/* Replying to */}
148 167
                    {replyingTo != null &&
149
                        <Flex direction="row" alignItems="center" justify="flex-end" height={10} style={{ backgroundColor: "#FFF8E1" }}>
168
                        <Flex direction="row" alignItems="center" justify="flex-end" height={10} backgroundColor={"secondary.50"}>
150 169
                            <Text>Replying to {replyingTo.userName}</Text>
151
                            <IconButton onPress={() => setReplyingTo(null)} size="sm" icon={<CloseIcon />} marginLeft="-1%" marginRight={20} />
170
                            <IconButton onPress={() => setReplyingTo(null)} size="sm" icon={<CloseIcon />} marginLeft={-1} marginRight={20} />
152 171
                        </Flex>
153 172
                    }
154 173

  
......
174 193
            }
175 194
            <ConfirmDialog {...confirmDialog} isShown={confirmDialog != null} cancelRef={cancelRef} />
176 195
        </VStack >
196
        </KeyboardAvoidingView>
177 197
    );
178 198
}
179 199

  

Také k dispozici: Unified diff