Skip to content

Commit

Permalink
Fix: issue in seat icon visibility and removed a few unwanted types
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Dec 5, 2024
1 parent 41d4703 commit 73fdfef
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/components/workspace/elements/seat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const Seat: React.FC<ISeatProps> = forwardRef(
width={seatSize * 0.75}
height={seatSize * 0.75}
size={seatSize * 0.75}
className={consumer.styles?.elements?.seat?.icon?.className}
className={twMerge(consumer.styles?.elements?.seat?.icon?.className, "stk-seat-icon")}
style={consumer.styles?.elements?.seat?.icon?.properties}
/>
)}
Expand Down
13 changes: 0 additions & 13 deletions src/stories/designer/basic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,6 @@ export const Story = {
render: (props) => <SeatToolkit mode={STKMode.DESIGNER} {...props} />
};

export const WithoutFooter = {
render: (props) => (
<SeatToolkit
mode={STKMode.DESIGNER}
{...props}
options={{
showFooter: false,
...props.options
}}
/>
)
};

export const WithReloadButton = {
render: (props) => (
<SeatToolkit
Expand Down
5 changes: 0 additions & 5 deletions src/stories/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export const options = {
...disableArgTypes(["options"]),
...prefixKeys(
{
showFooter: {
control: "boolean",
description: "Show or hide the footer",
defaultValue: { summary: true }
},
showGridSwitch: {
control: "boolean",
description: "Show or hide the grid switch",
Expand Down
2 changes: 1 addition & 1 deletion src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ rect.workspace-selection {
fill-opacity: 0.5;
}

.stk-core svg * {
.stk-core svg *:not(.stk-seat-icon *) {
transform-box: fill-box;
}
1 change: 0 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export interface ISTKProps {
options?: {
showGridSwitch?: boolean;
showSeatLabels?: boolean;
showFooter?: boolean;
showZoomControls?: boolean;
showVisibilityControls?: boolean;
showReloadButton?: boolean;
Expand Down
9 changes: 0 additions & 9 deletions src/types/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,11 @@ export interface IStyles {
input?: IStyle;
trigger?: IStyle;
};
footer?: {
root?: IStyle;
title?: IStyle;
meta?: IStyle;
};
zoomControls?: {
in?: IStyle;
out?: IStyle;
root?: IStyle;
};
panControls?: {
root?: IStyle;
innerRing?: IStyle;
handles?: {
up?: IStyle;
right?: IStyle;
Expand All @@ -44,7 +36,6 @@ export interface IStyles {
};
};
visibilityControls?: {
root?: IStyle;
buttons?: IStyle;
};
reloadButton?: IStyle;
Expand Down

0 comments on commit 73fdfef

Please sign in to comment.