Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[Progress] Should have an option to omit the min width on the bar

Open jacknevitt opened this issue 8 years ago • 6 comments

Steps

<div class="ui small progress" data-percent="0">
  <div class="bar" style="width: 0%;"></div>
  <div class="label">0/1</div>
</div>

Expected Result

image

Actual Result

image

Version

0.78.3

jacknevitt avatar Apr 18 '18 16:04 jacknevitt

As i'm using the progress in a table, there is not much horizontal space so It looks like the 0 is taking up about a fifth of the bar

jacknevitt avatar Apr 18 '18 16:04 jacknevitt

Similarly to https://github.com/Semantic-Org/Semantic-UI/issues/6445 the bar should be at 0 I am not using LESS on my project so cannot use this solution

jacknevitt avatar Jul 18 '18 10:07 jacknevitt

LESS compiles to CSS. The LESS instruction where @barMinWidth is used is

@barMinWidth: 2em;
@activeMinWidth: @barMinWidth;

.ui.progress .bar {
  min-width: @barMinWidth;
}

.ui.active.progress .bar {
  min-width: @activeMinWidth;
}

Should be possible to emulate the proposed solution in your CSS by adding

.ui.progress .bar {
  min-width: 0 !important;
}

.ui.active.progress .bar {
  min-width: 0 !important;
}

llturro avatar Jul 18 '18 10:07 llturro

Fixed by https://github.com/fomantic/Fomantic-UI/pull/412 Supposed to be included in the upcoming Fomantic-UI 2.7.2 Release

lubber-de avatar Jan 18 '19 20:01 lubber-de

When will be this released for Semantic UI react version?

dhanushkac avatar Dec 19 '19 12:12 dhanushkac

@dhanushkac Depends, if you need to JS fixes in the linked PR then no but if you need to CSS fixes then yes it will work as long as your using fomantic not semantic.

y0hami avatar Dec 19 '19 13:12 y0hami