Sha256: c35f630d421ec4f3ede09e71af936f3179dfc59ba3ac872edec388d1cf708b99

Contents?: true

Size: 640 Bytes

Versions: 6

Compression:

Stored size: 640 Bytes

Contents

/* Truncate */

.Truncate {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;

  & > .Truncate-text {
    min-width: 1ch;
    max-width: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    & + .Truncate-text {
      /* stylelint-disable-next-line primer/spacing */
      margin-left: var(--control-small-gap);
    }

    &.Truncate-text--primary {
      flex-basis: 200%;
    }

    &.Truncate-text--expandable:hover,
    &.Truncate-text--expandable:focus,
    &.Truncate-text--expandable:active {
      max-width: 100% !important;
      flex-shrink: 0;
      cursor: pointer;
    }
  }
}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.49.2 app/components/primer/beta/truncate.pcss
primer_view_components-0.35.2 app/components/primer/beta/truncate.pcss
openproject-primer_view_components-0.49.1 app/components/primer/beta/truncate.pcss
openproject-primer_view_components-0.49.0 app/components/primer/beta/truncate.pcss
primer_view_components-0.35.1 app/components/primer/beta/truncate.pcss
primer_view_components-0.35.0 app/components/primer/beta/truncate.pcss