mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix(share): redesign layout to avoid jumping on tablets
This commit is contained in:
		
							parent
							
								
									ce4f46c226
								
							
						
					
					
						commit
						618b67f551
					
				@ -25,6 +25,7 @@
 | 
			
		||||
.ck-content pre {
 | 
			
		||||
    overflow: auto;
 | 
			
		||||
    position: relative;
 | 
			
		||||
    min-width: unset !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.ck-content pre .copy-button {
 | 
			
		||||
 | 
			
		||||
@ -1,13 +1,21 @@
 | 
			
		||||
html,
 | 
			
		||||
body {
 | 
			
		||||
    width: 100vw;
 | 
			
		||||
    height: 100vh;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#split-pane {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-direction: row;
 | 
			
		||||
    gap: 50px;
 | 
			
		||||
    width: 100vw;
 | 
			
		||||
    height: 100vh;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#left-pane {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    width: calc((100vw - 900px) / 2);
 | 
			
		||||
    min-width: fit-content;
 | 
			
		||||
    max-width: 20vw;
 | 
			
		||||
    height: calc(100vh);
 | 
			
		||||
    background: var(--background-secondary);
 | 
			
		||||
    border-right: 5px solid var(--background-highlight);
 | 
			
		||||
@ -15,18 +23,28 @@
 | 
			
		||||
    position: sticky;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    overflow-y: auto;
 | 
			
		||||
    flex-shrink: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#right-pane {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    margin: 0 auto;
 | 
			
		||||
    gap: 40px;
 | 
			
		||||
    flex: 1;
 | 
			
		||||
    padding-right: 50px;
 | 
			
		||||
    overflow: auto;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#main {
 | 
			
		||||
    order: 2;
 | 
			
		||||
    max-width: 900px;
 | 
			
		||||
    flex: 1;
 | 
			
		||||
    padding: 0 20px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    overflow: auto;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media (min-width: 1200px) {
 | 
			
		||||
    #main {
 | 
			
		||||
        padding: 0 50px;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -35,9 +35,18 @@
 | 
			
		||||
 | 
			
		||||
@media (max-width: 48em) {
 | 
			
		||||
    
 | 
			
		||||
    html,
 | 
			
		||||
    body {
 | 
			
		||||
        width: unset;
 | 
			
		||||
        height: unset;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #split-pane {
 | 
			
		||||
        overflow: auto;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #right-pane, #main {
 | 
			
		||||
        width: 100%;
 | 
			
		||||
        overflow: hidden;
 | 
			
		||||
        padding: 0;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
@ -45,7 +54,6 @@
 | 
			
		||||
        padding: 1rem;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    #mobile-header {
 | 
			
		||||
        display: flex;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user