Fix New UX related bugs for Alerts, BucketList and Abort Upload modal (#5694)

- Center text on Alert component appearing on top
- Change "Upload" to "Continue" on New UX Abort Upload modal
- Fix issue where long bucket names were overflowing instead of
continuing on the next line
- Fix word wrap issue similar to the last one for the alerts that appear
on top
- Help fix the cluttering issue on #5690 as the right margin has been
increased in alerts

Fixes #5689, #5691 and #5695
master
Kaan Kabalak 7 years ago committed by Nitish Tiwari
parent 17409517ec
commit 3805a055ab
  1. 2
      browser/app/js/uploads/AbortConfirmModal.js
  2. 6
      browser/app/less/inc/alert.less
  3. 3
      browser/app/less/inc/sidebar.less

@ -50,7 +50,7 @@ export class AbortConfirmModal extends React.Component {
sub="This cannot be undone!" sub="This cannot be undone!"
okText="Abort" okText="Abort"
okIcon={okIcon} okIcon={okIcon}
cancelText="Upload" cancelText="Continue"
cancelIcon={cancelIcon} cancelIcon={cancelIcon}
okHandler={this.abortUploads.bind(this)} okHandler={this.abortUploads.bind(this)}
cancelHandler={hideAbort} cancelHandler={hideAbort}

@ -3,13 +3,15 @@
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
color: @white; color: @white;
width: 100%; width: 100%;
padding: 1.5rem 3rem 1.5rem 2rem; padding: 1.5rem 4rem 1.5rem 2rem;
z-index: 1000000; z-index: 1000000;
.animation-duration(800ms); .animation-duration(800ms);
.animation-fill-mode(both); .animation-fill-mode(both);
font-size: @font-size-small; font-size: @font-size-small;
word-wrap: break-word;
&:not(.alert--upload) { &:not(.alert--upload) {
text-align: center;
top: 1.5rem; top: 1.5rem;
max-width: 500px; max-width: 500px;
border-radius: @border-radius-base; border-radius: @border-radius-base;
@ -22,7 +24,7 @@
@media(max-width: (@screen-xs-max)) { @media(max-width: (@screen-xs-max)) {
left: 1.5rem; left: 1.5rem;
width: ~"calc(100% - 3rem)"; width: ~"calc(100% - 4rem)";
max-width: 100%; max-width: 100%;
} }

@ -88,10 +88,11 @@
} }
.buckets__item { .buckets__item {
padding: 0.8rem @sidebar-padding 0.8rem @sidebar-padding*2.2; padding: 0.8rem @sidebar-padding*1.2 0.8rem @sidebar-padding*2.2;
background: url(../../img/icons/bucket.svg) no-repeat left 2.2rem center; background: url(../../img/icons/bucket.svg) no-repeat left 2.2rem center;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
word-wrap: break-word;
& > a { & > a {
&, &:focus, &:hover { &, &:focus, &:hover {

Loading…
Cancel
Save