@@ -2748,23 +2748,6 @@ tbody.commit-list {
27482748 }
27492749}
27502750
2751- .branch-dropdown-button {
2752- max-width : 340px ;
2753- vertical-align : bottom !important ;
2754- }
2755-
2756- @media (min-width : 768px ) and (max-width : 991.98px ) {
2757- .branch-dropdown-button {
2758- max-width : 185px ;
2759- }
2760- }
2761-
2762- @media (max-width : 767.98px ) {
2763- .branch-dropdown-button {
2764- max-width : 165px ;
2765- }
2766- }
2767-
27682751.commit-status-header {
27692752 /* reset the default ".ui.attached.header" styles, to use the outer border */
27702753 border : none !important ;
@@ -2841,32 +2824,65 @@ tbody.commit-list {
28412824 max-height : 200px ;
28422825}
28432826
2844- /* Branch tag selector - TODO: Merge this into the same selector on repo page */
2845- .repository .issue-content .issue-content-right .ui .grid .column .row {
2846- padding : 10px ;
2847- padding-bottom : 0 ;
2827+ .branch-selector-dropdown {
2828+ max-width : 100% ;
28482829}
2849- .repository .issue-content .issue-content-right .ui .grid .column .muted {
2850- padding : 0 ;
2830+
2831+ .branch-selector-dropdown .branch-dropdown-button {
2832+ margin : 0 ;
2833+ max-width : 340px ;
2834+ }
2835+
2836+ /* FIXME: These media selectors are not ideal (just keep them from old code).
2837+ There are many different pages, some need the max-width while some others don't,
2838+ they should be tested and improved in the future. */
2839+ @media (min-width : 768px ) and (max-width : 991.98px ) {
2840+ .branch-selector-dropdown .branch-dropdown-button {
2841+ max-width : 185px ;
2842+ }
28512843}
2852- .repository .issue-content .issue-content-right .ui .grid .column .muted .text {
2844+
2845+ @media (max-width : 767.98px ) {
2846+ .branch-selector-dropdown .branch-dropdown-button {
2847+ max-width : 165px ;
2848+ }
2849+ }
2850+
2851+ .branch-selector-dropdown .branch-tag-tab {
2852+ padding : 0 10px ;
2853+ }
2854+
2855+ .branch-selector-dropdown .branch-tag-item {
28532856 display : inline-block;
28542857 padding : 10px ;
2855- width : 100% ;
2856- text-align : center;
28572858 border : 1px solid transparent;
28582859 border-bottom : none;
28592860}
2860- .repository .issue-content .issue-content-right .ui .grid .column .muted .text .black {
2861+
2862+ .branch-selector-dropdown .branch-tag-item .active {
28612863 border-color : var (--color-secondary );
28622864 background : var (--color-menu );
28632865 border-top-left-radius : var (--border-radius );
28642866 border-top-right-radius : var (--border-radius );
28652867}
2866- .repository .issue-content .issue-content-right .ui .dropdown .scrolling .menu {
2867- border-top : none;
2868- }
2869- .repository .issue-content .issue-content-right .branch-tag-divider {
2870- margin-top : -1px ;
2868+
2869+ .branch-selector-dropdown .branch-tag-divider {
2870+ margin-top : -1px !important ;
28712871 border-top : 1px solid var (--color-secondary );
28722872}
2873+
2874+ .branch-selector-dropdown .scrolling .menu {
2875+ border-top : none !important ;
2876+ }
2877+
2878+ .branch-selector-dropdown .menu .item .rss-icon {
2879+ visibility : hidden; /* only show RSS icon on hover */
2880+ }
2881+
2882+ .branch-selector-dropdown .menu .item : hover .rss-icon {
2883+ visibility : visible;
2884+ }
2885+
2886+ .branch-selector-dropdown .scrolling .menu .loading-indicator {
2887+ height : 4em ;
2888+ }
0 commit comments