Skip to content

Commit

Permalink
Fixed #35001 -- Fixed position of related widget action icons in admi…
Browse files Browse the repository at this point in the history
…n for some screen sizes.
  • Loading branch information
knyghty authored Dec 1, 2023
1 parent 0f83133 commit dec8aa6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion django/contrib/admin/static/admin/css/responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,10 @@ input[type="submit"], button {

.selector {
flex-direction: column;
gap: 10px 0;
}

.selector-available, .selector-chosen {
margin-bottom: 0;
flex: 1 1 auto;
}

Expand Down
10 changes: 6 additions & 4 deletions django/contrib/admin/static/admin/css/widgets.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.selector {
display: flex;
flex-grow: 1;
gap: 10px;
gap: 0 10px;
}

.selector select {
Expand All @@ -15,7 +15,6 @@

.selector-available, .selector-chosen {
text-align: center;
margin-bottom: 5px;
display: flex;
flex-direction: column;
flex: 1 1;
Expand Down Expand Up @@ -88,6 +87,7 @@
width: 22px;
background-color: var(--selected-bg);
border-radius: 10px;
margin: 0;
padding: 0;
transform: translateY(-17px);
}
Expand Down Expand Up @@ -151,7 +151,7 @@ a.selector-chooseall, a.selector-clearall {
display: inline-block;
height: 16px;
text-align: left;
margin: 1px auto 3px;
margin: 0 auto;
overflow: hidden;
font-weight: bold;
line-height: 16px;
Expand Down Expand Up @@ -580,8 +580,10 @@ ul.timelist, .timelist li {
/* RELATED WIDGET WRAPPER */
.related-widget-wrapper {
display: flex;
gap: 10px;
gap: 0 10px;
flex-grow: 1;
flex-wrap: wrap;
margin-bottom: 5px;
}

.related-widget-wrapper-link {
Expand Down

0 comments on commit dec8aa6

Please sign in to comment.