Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M Milou
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • Milou
  • Merge requests
  • !19

Size category width dynamically

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Kai Uwe Broulik requested to merge work/kbroulik/dynamicctegory into master Dec 22, 2020
  • Overview 7
  • Commits 1
  • Pipelines 0
  • Changes 2

In case all the category names are short, this leaves more room for the result text.

To reduce jumpiness of the UI, the category width is only reset when clearing the query. As a result, sometimes you still get a wide category column when you e.g. had a transient "Recently used file" result earlier in your query

This also changes the logic slightly to have the category label be always categoryWidth in size. Before it would subtract gridUnit from it. Should this new behavior be exposed in a property?


@alex

Before

Screenshot_20201222_115515

After

Screenshot_20201222_115452

Imho we should switch to a small spacing between category and label, because sometimes you get something awkward like this

Screenshot_20201222_115916

Edited Dec 22, 2020 by Kai Uwe Broulik
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/kbroulik/dynamicctegory