Revize d0870262
Přidáno uživatelem Fantič před více než 1 rok
src/components/item/ItemView.tsx | ||
---|---|---|
17 | 17 |
import { select } from "d3" |
18 | 18 |
import { CertaintyWithColors } from "../../stores/reducers/itemSlice" |
19 | 19 |
import { LeftArrowIcon, RightArrowIcon } from "../general/Icons" |
20 |
import { ZoomableImage } from "./ZoomableImage" |
|
20 | 21 |
|
21 | 22 |
interface ItemDetailProps { |
22 | 23 |
item: Item, |
... | ... | |
58 | 59 |
</Heading> |
59 | 60 |
|
60 | 61 |
</VStack> |
61 |
<Box marginLeft="auto" marginTop={1.5}> {/* marginLeft: "auto" pushes the Box to the right */} |
|
62 |
<Button variant="outline" backgroundColor={"#F4DFAB"} borderRadius={8} size="sm" padding={0.5} > |
|
62 |
<Box marginLeft="auto" marginTop={1.5} alignItems={"end"}> {/* marginLeft: "auto" pushes the Box to the right */}
|
|
63 |
<Button variant="outline" backgroundColor={"#F4DFAB"} borderRadius={8} size="sm" padding={0.5} paddingLeft={2} paddingRight={2} >
|
|
63 | 64 |
<Text color="#654B07" fontSize={12}> |
64 | 65 |
{item?.concordances?.[0]?.id} |
65 | 66 |
</Text> |
... | ... | |
108 | 109 |
setSelectedImage(selectedImage - 1); |
109 | 110 |
} |
110 | 111 |
}} icon={<LeftArrowIcon color="#49454F" />} /> |
111 |
<Image size={Dimensions.get('window').width - 110} alt="image" source={{ uri: IMAGE_URL + "/" + item.images[selectedImage].imageUrl }} resizeMode={"contain"} /> |
|
112 |
<IconButton variant="ghost" style={{ height: 30, width: 30, borderRadius: 15}} onPress={() => { |
|
112 |
|
|
113 |
<ZoomableImage fullScreen={false} size={Dimensions.get('window').width - 110} imageUri={IMAGE_URL + "/" + item.images[selectedImage].imageUrl} /> |
|
114 |
|
|
115 |
<IconButton variant="ghost" style={{ height: 30, width: 30, borderRadius: 15 }} onPress={() => { |
|
113 | 116 |
if (item.images && selectedImage + 1 < item.images.length) { |
114 | 117 |
setSelectedImage(selectedImage + 1); |
115 | 118 |
} |
Také k dispozici: Unified diff
re #10917: ItemView design fix