Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
chore: update translations + format (#114)
Browse files Browse the repository at this point in the history
* chore: update translations
Also fixes a format warning

* chore: format

* delete ds info pane

Co-authored-by: KaWaite <flippindaisy@gmail.com>
Co-authored-by: HideBa <baba.papa1120.ba@gmail.com>
Co-authored-by: rot1024 <aayhrot@gmail.com>
  • Loading branch information
4 people authored Nov 1, 2021
1 parent 331afb5 commit 7f191ed
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 383 deletions.
1 change: 1 addition & 0 deletions src/components/molecules/Visualizer/Plugin/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export function Provider({
getSelectedLayer,
getLayerSelectionReason,
getLayerOverriddenInfobox,
getLayerOverriddenProperties,
showLayer,
hideLayer,
selectLayer,
Expand Down
26 changes: 13 additions & 13 deletions src/components/molecules/Visualizer/Widget/Button/MenuButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ export default function ({
? "top-start"
: "top-end"
: position?.area === "middle"
? position?.section === "left"
? align === "end"
? "top-start"
: "bottom-start"
: align === "end"
? "top-end"
: "bottom-end"
: position?.section === "right" || align === "end"
? "bottom-end"
: "bottom-start",
? position?.section === "left"
? align === "end"
? "top-start"
: "bottom-start"
: align === "end"
? "top-end"
: "bottom-end"
: position?.section === "right" || align === "end"
? "bottom-end"
: "bottom-start",
modifiers: [
{
name: "eventListeners",
Expand Down Expand Up @@ -193,7 +193,7 @@ const Button = styled.div<{ button?: Button; publishedTheme: PublishTheme }>`
&:hover {
background: ${({ publishedTheme, button }) =>
mask(button?.buttonBgcolor) || publishedTheme.mask};
mask(button?.buttonBgcolor) || publishedTheme.mask};
}
`;

Expand All @@ -213,7 +213,7 @@ const MenuInnerWrapper = styled.div<{ button?: Button; publishedTheme: PublishTh
hyphens: auto;
`;

const MenuItem = styled(Flex) <{ item?: MenuItem; button?: Button; publishedTheme: PublishTheme }>`
const MenuItem = styled(Flex)<{ item?: MenuItem; button?: Button; publishedTheme: PublishTheme }>`
min-height: ${({ item }) => (item?.menuType === "border" ? null : "25px")};
border-radius: ${({ item }) => (item?.menuType === "border" ? null : "3px")};
padding: ${({ item }) => (item?.menuType === "border" ? "0 10px" : "2px 10px")};
Expand All @@ -228,6 +228,6 @@ const MenuItem = styled(Flex) <{ item?: MenuItem; button?: Button; publishedThem
&:hover {
background: ${({ publishedTheme, item, button }) =>
item?.menuType === "border" ? null : mask(button?.buttonBgcolor) || publishedTheme.mask};
item?.menuType === "border" ? null : mask(button?.buttonBgcolor) || publishedTheme.mask};
}
`;
Loading

0 comments on commit 7f191ed

Please sign in to comment.