summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-07-11 13:33:54 (GMT)
committerTobias Markmann <tm@ayena.de>2016-07-12 09:18:54 (GMT)
commit0ea6c4a70e324c431bb4c10eab2f2de25da253e0 (patch)
treee76fbc3ef130b6e1d0a3b7c56c1f93119ad64f68 /Swift/resources/themes/Default/Template.html
parentd508ac6ac41918d2c831b47b29761980989dd7f6 (diff)
downloadswift-0ea6c4a70e324c431bb4c10eab2f2de25da253e0.zip
swift-0ea6c4a70e324c431bb4c10eab2f2de25da253e0.tar.bz2
Change chat view layout to use tables for performance
This changes the CSS to change the chat view elements to table elements like <table>, <tr> and <td>. The previously used color block with the CSS attribute "position: fixed" had a very noticeable performance overhead when scrolling the view. Table layout has a noticeably smaller performance overhead when scrolling the chat view. Test-Information: Verified the chat view layout pretty much looks like the one we had before. Tested with Qt 5.5.1 on OS X 10.11.5. Change-Id: If950f2a45ea4f02b68cdcd81deff965147540c7e
Diffstat (limited to 'Swift/resources/themes/Default/Template.html')
-rw-r--r--Swift/resources/themes/Default/Template.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/Swift/resources/themes/Default/Template.html b/Swift/resources/themes/Default/Template.html
index fe2f599..74c5e46 100644
--- a/Swift/resources/themes/Default/Template.html
+++ b/Swift/resources/themes/Default/Template.html
@@ -10,9 +10,10 @@
</head>
<body>
<div class="container">
- <div class="colour-block"></div>
<div class="message-block">
- <div id="insert"></div>
+ <div id="insert">
+ <div class="user"></div><div class="text"></div>
+ </div>
</div>
</div>
</body>