Skip to content

Commit

Permalink
Farabi/prodqa 1168/change sort placement on toolbar (binary-com#9394)
Browse files Browse the repository at this point in the history
* fix: sort button placement and padding alignment on dashboard

* fix: alignment of tables and texts in dashboard mobile

* fix: add padding on selected strategy
  • Loading branch information
farabi-deriv committed Jul 25, 2023
1 parent 7b7d084 commit a81b55c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ const WorkspaceGroup = ({
icon_id='db-toolbar__save-button'
action={toggleSaveModal}
/>
<ToolbarIcon
popover_message={localize('Sort blocks')}
icon='IcSort'
icon_id='db-toolbar__sort-button'
action={onSortClick}
/>
<div className='vertical-divider' />
<ToolbarIcon
popover_message={localize('Undo')}
Expand All @@ -64,12 +70,7 @@ const WorkspaceGroup = ({
icon_color={has_redo_stack ? undefined : 'disabled'}
action={() => onUndoClick(/* redo */ true)}
/>
<ToolbarIcon
popover_message={localize('Sort')}
icon='IcSort'
icon_id='db-toolbar__sort-button'
action={onSortClick}
/>
<div className='vertical-divider' />
<ToolbarIcon
popover_message={localize('Zoom in')}
icon='IcZoomIn'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
&__mobile-container {
display: flex;
align-items: center;
margin: 1.6rem 1.6rem 1.4rem;
margin: 1.6rem 1.6rem 1.4rem 0.5rem;
column-gap: 1rem;
height: 3.2rem;

Expand Down Expand Up @@ -260,7 +260,7 @@
&--listed {
margin-top: 10rem;
align-items: unset;
padding: 1rem 3rem;
padding: 1rem 2.4rem;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
@include mobile {
height: 100%;
overflow: hidden;
padding-left: 0.5rem;
}
}

Expand Down Expand Up @@ -333,14 +334,14 @@

&__loaded {
text-align: left;
padding: 1rem 3rem;
padding: 1rem 2.4rem;

@include tablet {
padding: 1rem 0.6rem;
}

@include mobile {
padding: 1rem 0.6rem;
padding: 1rem 0.4rem;
}

.load-strategy__recent-item-text {
Expand Down Expand Up @@ -435,6 +436,10 @@
}
}
}

span {
padding-right: 1.5rem;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const RecentComponent = ({
<div className='load-strategy__recent__files'>
<div className='load-strategy__title'>
<Text size={is_mobile ? 'xs' : 's'} weight='bold'>
<Localize i18n_default_text='Your bots' />
<Localize i18n_default_text='Your bots:' />
</Text>
</div>
<div className='load-strategy__recent__files__list'>
Expand Down

0 comments on commit a81b55c

Please sign in to comment.