Fade buttons when disabled

This commit is contained in:
Pavel Djundik 2018-09-12 22:54:20 +03:00
parent cd76512619
commit d1185da9eb
2 changed files with 7 additions and 1 deletions

View file

@ -38,7 +38,8 @@
<button
id="submit"
type="submit"
aria-label="Send message" />
aria-label="Send message"
:disabled="!this.$root.isConnected" />
</span>
</form>
</template>

View file

@ -2029,6 +2029,11 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
flex: 0 0 auto;
}
#form #upload[disabled],
#form #submit[disabled] {
opacity: 0.5;
}
#context-menu-container {
display: none;
position: absolute;