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 <button
id="submit" id="submit"
type="submit" type="submit"
aria-label="Send message" /> aria-label="Send message"
:disabled="!this.$root.isConnected" />
</span> </span>
</form> </form>
</template> </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; flex: 0 0 auto;
} }
#form #upload[disabled],
#form #submit[disabled] {
opacity: 0.5;
}
#context-menu-container { #context-menu-container {
display: none; display: none;
position: absolute; position: absolute;