| 
									
										
										
										
											2018-02-04 10:05:01 -08:00
										 |  |  | {{#if notification.type === 'mention' || notification.type === 'reblog' || notification.type === 'favourite'}} | 
					
						
							| 
									
										
										
										
											2018-03-20 20:28:53 -07:00
										 |  |  |   <Status :index :length :timelineType :timelineValue :focusSelector | 
					
						
							| 
									
										
										
										
											2018-02-04 10:05:01 -08:00
										 |  |  |           status="{{notification.status}}" | 
					
						
							|  |  |  |           :notification | 
					
						
							|  |  |  |           on:recalculateHeight | 
					
						
							|  |  |  |   /> | 
					
						
							|  |  |  | {{else}} | 
					
						
							|  |  |  |   <article class="notification-article" | 
					
						
							|  |  |  |            tabindex="0" | 
					
						
							| 
									
										
										
										
											2018-03-22 21:59:02 -07:00
										 |  |  |            aria-posinset="{{index}}" aria-setsize="{{length}}" > | 
					
						
							| 
									
										
										
										
											2018-03-22 21:36:19 -07:00
										 |  |  |     <StatusHeader :notification :notificationId :status :statusId :timelineType | 
					
						
							|  |  |  |                   :account :accountId :uuid isStatusInNotification="true" /> | 
					
						
							| 
									
										
										
										
											2018-02-04 10:05:01 -08:00
										 |  |  |   </article> | 
					
						
							|  |  |  | {{/if}} | 
					
						
							|  |  |  | <style> | 
					
						
							|  |  |  |   .notification-article { | 
					
						
							|  |  |  |     width: 560px; | 
					
						
							|  |  |  |     max-width: calc(100vw - 40px); | 
					
						
							|  |  |  |     padding: 10px 20px; | 
					
						
							|  |  |  |     border-bottom: 1px solid var(--main-border); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   @media (max-width: 767px) { | 
					
						
							|  |  |  |     .notification-article { | 
					
						
							|  |  |  |       padding: 10px 10px; | 
					
						
							|  |  |  |       max-width: calc(100vw - 20px); | 
					
						
							| 
									
										
										
										
											2018-02-25 11:29:19 -08:00
										 |  |  |       width: 580px; | 
					
						
							| 
									
										
										
										
											2018-02-04 10:05:01 -08:00
										 |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | </style> | 
					
						
							|  |  |  | <script> | 
					
						
							| 
									
										
										
										
											2018-02-04 10:05:26 -08:00
										 |  |  |   import Status from './Status.html' | 
					
						
							|  |  |  |   import StatusHeader from './StatusHeader.html' | 
					
						
							| 
									
										
										
										
											2018-03-15 20:04:24 -07:00
										 |  |  |   import { store } from '../../_store/store' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-04 10:05:01 -08:00
										 |  |  |   export default { | 
					
						
							|  |  |  |     components: { | 
					
						
							|  |  |  |       Status, | 
					
						
							|  |  |  |       StatusHeader | 
					
						
							| 
									
										
										
										
											2018-03-15 20:04:24 -07:00
										 |  |  |     }, | 
					
						
							|  |  |  |     store: () => store, | 
					
						
							|  |  |  |     computed: { | 
					
						
							|  |  |  |       account: (notification) => notification.account, | 
					
						
							|  |  |  |       accountId: (account) => account.id, | 
					
						
							|  |  |  |       notificationId: (notification) => notification.id, | 
					
						
							|  |  |  |       status: (notification) => notification.status, | 
					
						
							|  |  |  |       statusId: (status) => status && status.id, | 
					
						
							|  |  |  |       uuid: ($currentInstance, timelineType, timelineValue, notificationId, statusId) => { | 
					
						
							|  |  |  |         return `${$currentInstance}/${timelineType}/${timelineValue}/${notificationId}/${statusId || ''}` | 
					
						
							| 
									
										
										
										
											2018-04-19 21:38:01 -07:00
										 |  |  |       } | 
					
						
							| 
									
										
										
										
											2018-02-04 10:05:01 -08:00
										 |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | </script> |