mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Fix: top nav layout with custom title on very narrow screens
This commit is contained in:
		
							parent
							
								
									ac780134fb
								
							
						
					
					
						commit
						4263d2196c
					
				@ -15,7 +15,7 @@
 | 
			
		||||
    </svg>
 | 
			
		||||
    <div class="ms-2 ms-md-3 d-inline-block" [class.d-md-none]="slimSidebarEnabled">
 | 
			
		||||
      @if (customAppTitle?.length) {
 | 
			
		||||
        <div class="d-flex flex-column align-items-start">
 | 
			
		||||
        <div class="d-flex flex-column align-items-start custom-title">
 | 
			
		||||
          <span class="title">{{customAppTitle}}</span>
 | 
			
		||||
          <span class="byline text-uppercase font-monospace" i18n>by Paperless-ngx</span>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
@ -244,7 +244,7 @@ main {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media screen and (max-width: 768px) {
 | 
			
		||||
@media screen and (min-width: 366px) and (max-width: 768px) {
 | 
			
		||||
  .navbar-toggler {
 | 
			
		||||
    // compensate for 2 buttons on the right
 | 
			
		||||
    margin-right: 45px;
 | 
			
		||||
@ -257,6 +257,13 @@ main {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media screen and (max-width: 345px) {
 | 
			
		||||
  .custom-title {
 | 
			
		||||
    max-width: 102px;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
:host ::ng-deep .dropdown.show .dropdown-toggle,
 | 
			
		||||
:host ::ng-deep .dropdown-toggle:hover {
 | 
			
		||||
  opacity: 0.7;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user