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

farabi/bot-512/tour content sizing and responsiveness on small screen #9472

Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
margin-bottom: 2.4rem;
}

&__container {
&__image {
width: 100%;
height: 100%;
display: flex;
Expand Down Expand Up @@ -362,6 +362,8 @@
}

.joyride-content {
font-size: 1.4rem;

&__left {
text-align: left;

Expand Down
17 changes: 0 additions & 17 deletions packages/bot-web-ui/src/components/dashboard/joyride-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ type TJoyrideConfig = Record<
boolean
>;

type TStep = {
label?: string;
content: Array<string | React.ReactElement>;
type?: 'list' | 'text';
};

type TTourStatus = {
key: string;
toggle: string;
Expand All @@ -39,17 +33,6 @@ export const getTourSettings = (type: string) => {
return getSetting(`${tour_type.key}_status`);
};

export const Step = ({ label, content }: TStep) => {
return (
<div className='db-tour'>
<Text line_height='xl' as='p' weight='bold'>
{label}
</Text>
{content.map(item => item)}
</div>
);
};

export const tour_type: TTourType = {
key: 'onboard_tour',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const TourGuide = ({ content, img, label, onCloseTour, step_index }: TTourGuide)
</div>

{img && (
<div className='onboard__container'>
<div className='onboard__image'>
{has_image_loaded ? <img src={img} loading='eager' /> : <Loading />}
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const TourTriggrerDialog = ({
</Text>
</div>
<div className='dc-dialog__content__description'>
<Text size={is_mobile ? 'xxs' : 's'} color='prominent'>
<Text size={is_mobile ? 'xxs' : 'xs'} color='prominent'>
{is_tour_dialog_visible && getTourContent('content')}
</Text>
</div>
Expand Down