@@ -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,70 @@ 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+ .ui .dropdown .branch-selector-dropdown > .menu {
2832+ margin-top : 4px ;
2833+ }
2834+
2835+ .branch-selector-dropdown .branch-dropdown-button {
2836+ margin : 0 ;
2837+ max-width : 340px ;
2838+ line-height : var (--line-height-default );
2839+ }
2840+
2841+ /* FIXME: These media selectors are not ideal (just keep them from old code).
2842+ There are many different pages, some need the max-width while some others don't,
2843+ they should be tested and improved in the future. */
2844+ @media (min-width : 768px ) and (max-width : 991.98px ) {
2845+ .branch-selector-dropdown .branch-dropdown-button {
2846+ max-width : 185px ;
2847+ }
2848+ }
2849+
2850+ @media (max-width : 767.98px ) {
2851+ .branch-selector-dropdown .branch-dropdown-button {
2852+ max-width : 165px ;
2853+ }
28512854}
2852- .repository .issue-content .issue-content-right .ui .grid .column .muted .text {
2855+
2856+ .branch-selector-dropdown .branch-tag-tab {
2857+ padding : 0 10px ;
2858+ }
2859+
2860+ .branch-selector-dropdown .branch-tag-item {
28532861 display : inline-block;
28542862 padding : 10px ;
2855- width : 100% ;
2856- text-align : center;
28572863 border : 1px solid transparent;
28582864 border-bottom : none;
28592865}
2860- .repository .issue-content .issue-content-right .ui .grid .column .muted .text .black {
2866+
2867+ .branch-selector-dropdown .branch-tag-item .active {
28612868 border-color : var (--color-secondary );
28622869 background : var (--color-menu );
28632870 border-top-left-radius : var (--border-radius );
28642871 border-top-right-radius : var (--border-radius );
28652872}
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 ;
2873+
2874+ .branch-selector-dropdown .branch-tag-divider {
2875+ margin-top : -1px !important ;
28712876 border-top : 1px solid var (--color-secondary );
28722877}
2878+
2879+ .branch-selector-dropdown .scrolling .menu {
2880+ border-top : none !important ;
2881+ }
2882+
2883+ .branch-selector-dropdown .menu .item .rss-icon {
2884+ visibility : hidden; /* only show RSS icon on hover */
2885+ }
2886+
2887+ .branch-selector-dropdown .menu .item : hover .rss-icon {
2888+ visibility : visible;
2889+ }
2890+
2891+ .branch-selector-dropdown .scrolling .menu .loading-indicator {
2892+ height : 4em ;
2893+ }
0 commit comments