mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-31 03:53:34 +00:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			v5.9.1
			...
			webview-fl
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | da1e64e832 | ||
|  | f1f0d2815a | ||
|  | 6fd9744d56 | 
| @@ -28,7 +28,7 @@ body { | ||||
|     -webkit-app-region: drag; | ||||
|     overflow: hidden; | ||||
|     transition: all 0.5s ease; | ||||
|     z-index: 1; | ||||
|     z-index: 2; | ||||
| } | ||||
|  | ||||
| .toggle-sidebar div { | ||||
| @@ -249,28 +249,34 @@ body { | ||||
| } | ||||
|  | ||||
| webview { | ||||
|     opacity: 1; | ||||
|     /* transition: opacity 0.3s ease-in; */ | ||||
|     flex-grow: 1; | ||||
|     position: absolute; | ||||
|     width: 100%; | ||||
|     height: 100%; | ||||
|     flex-grow: 1; | ||||
|     display: flex; | ||||
|     flex-direction: column; | ||||
| } | ||||
|  | ||||
| webview.onload { | ||||
|     transition: opacity 1s cubic-bezier(0.95, 0.05, 0.795, 0.035); | ||||
| } | ||||
|  | ||||
| webview.disabled { | ||||
|     flex: 0 1; | ||||
|     height: 0; | ||||
|     width: 0; | ||||
|     opacity: 0; | ||||
|     transition: opacity 0.3s ease-out; | ||||
| webview.active { | ||||
|     opacity: 1; | ||||
|     z-index: 1; | ||||
|     visibility: visible; | ||||
| } | ||||
|  | ||||
| webview:focus { | ||||
| webview.disabled { | ||||
|     opacity: 0; | ||||
| } | ||||
|  | ||||
| webview.focus { | ||||
|     outline: 0px solid transparent; | ||||
| } | ||||
|  | ||||
|  | ||||
| /* Tooltip styling */ | ||||
|  | ||||
| #back-tooltip, | ||||
|   | ||||
| @@ -130,6 +130,7 @@ class WebView extends BaseComponent { | ||||
| 		} | ||||
|  | ||||
| 		this.$el.classList.remove('disabled'); | ||||
| 		this.$el.classList.add('active'); | ||||
| 		setTimeout(() => { | ||||
| 			if (this.props.role === 'server') { | ||||
| 				this.$el.classList.remove('onload'); | ||||
| @@ -168,6 +169,7 @@ class WebView extends BaseComponent { | ||||
|  | ||||
| 	hide() { | ||||
| 		this.$el.classList.add('disabled'); | ||||
| 		this.$el.classList.remove('active'); | ||||
| 	} | ||||
|  | ||||
| 	load() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user