Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/css related issue #235

Merged
merged 8 commits into from
Mar 11, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#235](https://github.com/alleslabs/celatone-frontend/pull/235) Fix css bugs and aesthetics improvement
- [#236](https://github.com/alleslabs/celatone-frontend/pull/236) Add alphabetically sorting to JSON attach funds
- [#231](https://github.com/alleslabs/celatone-frontend/pull/231) Fix double slash for endpoint, disable calling endpoint when there is no contract addr in contract details page
- [#229](https://github.com/alleslabs/celatone-frontend/pull/229) Disable Sentry debug to prevent "logger.info is not a function" error
Expand Down
4 changes: 3 additions & 1 deletion src/lib/components/ContractSelectSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ const ContractDetailsButton = ({
variant="outline-gray"
float="right"
size="sm"
leftIcon={<CustomIcon name="bookmark" color="text.dark" />}
leftIcon={
<CustomIcon name="bookmark" color="text.dark" boxSize="12px" />
}
>
Add To List
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/copy/Copier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Copier = ({
marginLeft={ml}
onClick={() => AmpTrack(AmpEvent.USE_COPIER)}
name="copy"
boxSize="16px"
boxSize="12px"
/>
}
/>
Expand Down
16 changes: 9 additions & 7 deletions src/lib/components/forms/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ export const TextInput = ({
{error ? (
<FormErrorMessage className="error-text">{error}</FormErrorMessage>
) : (
<FormHelperText className="helper-text">
{status?.message ? (
getResponseMsg(status, helperText)
) : (
<Text color="text.dark">{helperText}</Text>
)}
</FormHelperText>
helperText && (
jennieramida marked this conversation as resolved.
Show resolved Hide resolved
<FormHelperText className="helper-text">
{status?.message ? (
getResponseMsg(status, helperText)
) : (
<Text color="text.dark">{helperText}</Text>
)}
</FormHelperText>
)
)}
{helperAction}
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/json/JsonReadOnly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const JsonReadOnly = ({
const zeroHeight = height === 0;
return (
<Box
m={zeroHeight ? 0 : "8px 0 16px"}
m={zeroHeight ? 0 : "0px 0 16px"}
p={
zeroHeight
? 0
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/select-contract/SelectContractAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const SelectContractAdmin = ({
}}
leftIcon={
!notSelected ? (
<CustomIcon name="swap" color="violet.light" />
<CustomIcon name="swap" color="violet.light" boxSize="12px" />
) : undefined
}
disabled={!address}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const SelectContractInstantiator = ({
}}
leftIcon={
!notSelected ? (
<CustomIcon name="swap" color="violet.light" />
<CustomIcon name="swap" color="violet.light" boxSize="12px" />
) : undefined
}
>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/table/TableTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export const TableTitle = ({
<Badge
variant="gray"
color="text.main"
textColor={count ? "gray.100" : "gray.500"}
textColor={count ? "text.main" : "pebble.500"}
>
{count}
</Badge>
</Flex>
<Text variant="body2" textColor="gray.400">
<Text variant="body2" textColor="text.dark">
{helperText}
</Text>
</Box>
Expand Down
11 changes: 11 additions & 0 deletions src/lib/layout/navbar/Collapse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,22 @@ export const CollapseNavMenu = ({
_hover={{ bg: "pebble.700", borderRadius: "8px" }}
transition="all .25s ease-in-out"
alignItems="center"
position="relative"
bgColor={
isCurrentPage(submenu.slug) ? "pebble.800" : "transparent"
}
borderRadius={isCurrentPage(submenu.slug) ? "8px" : "0px"}
>
<Flex
opacity={isCurrentPage(submenu.slug) ? 1 : 0}
width="3px"
height="16px"
bgColor="violet.light"
position="absolute"
top="8px"
borderRadius="2px"
left="0px"
/>
{submenu.icon && <CustomIcon name={submenu.icon} />}
{submenu.logo && (
<Image
Expand Down
13 changes: 10 additions & 3 deletions src/lib/layout/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,16 @@ const Navbar = observer(({ isExpand, setIsExpand }: NavbarProps) => {
const isCurrentPage = useCallback(
jennieramida marked this conversation as resolved.
Show resolved Hide resolved
(slug: string) => {
if (network) {
return slug === "/"
? pathName === `/${network}`
: pathName === `/${network}${slug}`;
switch (slug) {
case "/":
return pathName === `/${network}`;
case "/contract-list":
return pathName === `/${network}${slug}`;
case "/public-project":
return pathName === `/${network}${slug}`;
jennieramida marked this conversation as resolved.
Show resolved Hide resolved
default:
return pathName.includes(`/${network}${slug}`);
}
jennieramida marked this conversation as resolved.
Show resolved Hide resolved
}
return pathName === `${slug}`;
},
Expand Down
3 changes: 2 additions & 1 deletion src/lib/pages/faucet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const Faucet = () => {
<Heading as="h5" variant="h5">
Osmosis Testnet Faucet
</Heading>
<Text variant="body2" color="pebble.600" pt={4} textAlign="center" mb={8}>
<Text variant="body2" color="text.dark" pt={4} textAlign="center" mb={8}>
The faucet provides 10 testnet OSMO per request. Requests are limited to
once per hour for each receiving address and IP address.
</Text>
Expand All @@ -167,6 +167,7 @@ const Faucet = () => {
variant="body3"
cursor="pointer"
alignSelf="flex-start"
ml="3"
onClick={() => {
AmpTrack(AmpEvent.USE_ASSIGN_ME);
setAddress(walletAddress);
Expand Down
10 changes: 5 additions & 5 deletions src/lib/pages/query/components/QueryArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ export const QueryArea = ({

return (
<Flex direction="column">
<Box width="full" my="16px" alignItems="center">
<Box width="full" mt="4" mb="8" alignItems="center">
{contractAddress && (
<Text variant="body3" mb="8px">
<Text variant="body3" mb="2">
jennieramida marked this conversation as resolved.
Show resolved Hide resolved
Message Suggestions:
</Text>
)}
{cmds.length ? (
<ButtonGroup
width="90%"
flexWrap="wrap"
rowGap="8px"
rowGap="2"
jennieramida marked this conversation as resolved.
Show resolved Hide resolved
sx={{
"> button": {
marginInlineStart: "0 !important",
Expand All @@ -120,13 +120,13 @@ export const QueryArea = ({
</ButtonGroup>
) : (
contractAddress && (
<Text my="4px" variant="body2" color="text.dark">
<Text my="1" variant="body2" color="text.dark">
No QueryMsgs suggestion available
</Text>
)
)}
</Box>
<Flex gap="16px">
<Flex gap="4">
<Box w="full">
<JsonInput
topic="Query Msg"
Expand Down