Skip to content
Snippets Groups Projects

Issue #3444391: Center align logo on collapsed toolbar.

Open Issue #3444391: Center align logo on collapsed toolbar.
5 unresolved threads
5 unresolved threads

Closes #3444391

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
371 371 display: none;
372 372 }
373 373 }
374
375 html[data-admin-toolbar="collapsed"] {
  • added 1 commit

    Compare with previous version

  • Ahsan Nazir added 1 commit

    added 1 commit

    Compare with previous version

  • 371 371 display: none;
    372 372 }
    373 373 }
    374
    375 :where([data-admin-toolbar="collapsed"]) {
  • IMMACULATE X added 1 commit

    added 1 commit

    • 8c899591 - Update file admin-toolbar.pcss.css

    Compare with previous version

  • Ahsan Nazir added 1 commit

    added 1 commit

    • c8ab8782 - Update styles and fix pipeline.

    Compare with previous version

  • Ahsan Nazir added 1 commit

    added 1 commit

    • 1794cdad - Update styles and fix pipeline.

    Compare with previous version

  • Ahsan Nazir added 128 commits

    added 128 commits

    Compare with previous version

  • 242 247 & img {
    243 248 display: block;
    244 249 }
    250
    251 :where([data-admin-toolbar="collapsed"]) & {
    252 > img {
    253 max-width: 40px;
  • 242 247 & img {
    243 248 display: block;
    244 249 }
    250
    251 :where([data-admin-toolbar="collapsed"]) & {
    252 > img {
  • Ahsan Nazir added 1 commit

    added 1 commit

    • 5f47994d - Set max-width on img container.

    Compare with previous version

  • Ahsan Nazir added 87 commits

    added 87 commits

    Compare with previous version

  • 246 251 display: block;
    247 252 max-width: var(--admin-toolbar-space-40);
    248 253 }
    254
    255 :where([data-admin-toolbar="collapsed"]) & {
    256 max-width: var(--admin-toolbar-space-40);
    • i see img ^ always has max-width not related to expanded/collapsed state. maybe remove it there and set only __logo max-width always?

    • yes, I had fixed max width in the branch with the fix for disconnected file, other use of this in this branch would be unnecessary now. this branch has noise now that it's merged in..

      • the a href itself should be 40x40 (size of a finger tip touch), then v/h center the img itself in the href the image and keep it padded should work thru better.
      • when/with the logo crop (#3436526) this issue only needs to consider smaller image.
      .admin-toolbar__logo {
        ....
        & img {
          display: block;
          max-width: var(--admin-toolbar-space-40);
        }
      }
      Edited by skaught
    • Please register or sign in to reply
    Please register or sign in to reply
    Loading