Skip to content
Snippets Groups Projects

Fix recent searches icon alignment in Safari

All threads resolved!

What does this MR do?

Fix recent searches icon alignment in Safari

. Chrome Safari Firefox IE 11 Edge
Before
After

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

The recent searches icon alignment was off in Safari

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #30642 (closed)

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
  • @MadLittleMods I looked into your changes a little more and I think it could be improved

    I did some changes locally and this seemed to work better:

    diff --git a/app/assets/stylesheets/framework/filters.scss b/app/assets/stylesheets/framework/filters.scss
    index e1ebe01..3fe2359 100644
    --- a/app/assets/stylesheets/framework/filters.scss
    +++ b/app/assets/stylesheets/framework/filters.scss
    @@ -246,23 +246,10 @@
       }
     }
     
    -.filtered-search-history-dropdown-wrapper {
    -  position: initial;
    -  flex-shrink: 0;
    -  display: flex;
    -  flex-direction: column;
    -}
    -
     .filtered-search-history-dropdown-toggle-button {
    -  flex: 1;
       width: auto;
    -  height: 100%;
    -  padding-top: 0;
    -  padding-left: 0.75em;
    -  padding-bottom: 0;
    -  padding-right: 0.5em;
    +  padding-right: 10px;
     
    -  background-color: transparent;
       border-radius: 0;
       border-top: 0;
       border-left: 0;
    @@ -270,7 +257,6 @@
       border-right: 1px solid $border-color;
     
       color: $gl-text-color-secondary;
    -  line-height: 1;
     
       transition: color 0.1s linear;
     
    @@ -283,7 +269,6 @@
     
       .dropdown-toggle-text {
         display: inline-block;
    -    vertical-align: middle;
         color: inherit;
     
         .fa {

    Can you see if this works for you?

  • added 1 commit

    • ae5c16f7 - Fix recent searches icon alignment in Safari

    Compare with previous version

  • @ClemMakesApps That snippet doesn't quite work because the button isn't full-height of the container and the dropdown is squished.

    I worked from your stripped down base and was able to get something going. Things are fixed up in Chrome, Firefox, Safari, IE 11, Edge.

  • username-removed-408677 resolved all discussions

    resolved all discussions

  • username-removed-408677 approved this merge request

    approved this merge request

  • mentioned in commit d7a52716

  • Thanks @ClemMakesApps for close inspection 👀

  • Picked into 9-1-stable, will go into 9.1.0-rc2

  • mentioned in commit c9fb9572

  • Please register or sign in to reply
    Loading