fix(front): [WIP] improve page layout
This commit is contained in:
		
							parent
							
								
									167e663661
								
							
						
					
					
						commit
						aa7ea5ef93
					
				|  | @ -101,11 +101,12 @@ store.dispatch('auth/fetchUser') | |||
|         </KeepAlive> | ||||
|       </Transition> | ||||
|     </RouterView> | ||||
|   </div> | ||||
|   <ServiceMessages /> | ||||
|   <transition name="queue"> | ||||
|     <Queue v-show="store.state.ui.queueFocused" /> | ||||
|   </transition> | ||||
|     <AudioPlayer /> | ||||
|   <AudioPlayer class="funkwhale" v-bind="color({}, ['default', 'solid'])()" /> | ||||
|   <LanguagesModal /> | ||||
|   <ShortcutsModal /> | ||||
|   <PlaylistModal v-if="store.state.auth.authenticated" /> | ||||
|  | @ -114,19 +115,18 @@ store.dispatch('auth/fetchUser') | |||
|   <UploadModal v-if="store.state.auth.authenticated" /> | ||||
|   <SearchModal /> | ||||
|   <ServiceMessages /> | ||||
|   </div> | ||||
| </template> | ||||
| 
 | ||||
| <style scoped lang="scss"> | ||||
| .responsive { | ||||
|   display: grid !important; | ||||
|   grid-template-columns: 100%; | ||||
|   grid-template-columns: 100% 0 0; | ||||
|   grid-template-rows: min-content; | ||||
|   min-height: 100vh; | ||||
|   min-height: calc(100vh - 64px); | ||||
| 
 | ||||
|   @media screen and (min-width: 1024px) { | ||||
|     grid-template-columns: 300px 5fr; | ||||
|     grid-template-rows: 100%; | ||||
|     grid-template-columns: 300px 1fr; | ||||
|     grid-template-rows: 100% 0 0; | ||||
|   } | ||||
| } | ||||
| </style> | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ import type { Entries, Entry, KeysOfUnion } from 'type-fest' | |||
| import type { HTMLAttributes } from 'vue' | ||||
| 
 | ||||
| export type AlignmentProps = { | ||||
|   alignText?: 'left' | 'center' | 'right' | 'stretch' | 'space-out', | ||||
|   alignText?: 'start' | 'center' | 'end' | 'stretch' | 'space-out', | ||||
|   alignSelf?: 'start' | 'center' | 'end' | 'auto' | 'baseline' | 'stretch', | ||||
|   alignItems?: 'start' | 'center' | 'end' | 'auto' | 'baseline' | 'stretch' | ||||
| } & { | ||||
|  | @ -14,10 +14,10 @@ const styles = { | |||
|   center: 'place-content: center center; place-self: center center;', | ||||
|   stretch: 'place-content: stretch stretch; place-self: stretch stretch;', | ||||
|   alignText: (a:AlignmentProps['alignText']) => ({ | ||||
|     left: 'justify-content: flex-start;', | ||||
|     start: 'justify-content: flex-start;', | ||||
|     center: 'place-content: center;', | ||||
|     baseline: 'align-items: baseline;', | ||||
|     right: 'justify-content: flex-end;', | ||||
|     end: 'justify-content: flex-end;', | ||||
|     stretch: 'place-content: stretch;', | ||||
|     'space-out': 'place-content: space-between;' | ||||
|   }[a!]), | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 upsiflu
						upsiflu