git ssb

10+

Matt McKegg / patchwork



Commit 689e56ed53ce16e61ad3a4145e82787c6d11960f

don't allow public key to break layout when too long for available space

Use text-overflow ellipsis

#680
Matt McKegg committed on 11/25/2017, 11:44:30 PM
Parent: 452d3838ab4f6ffb18b71fff39793437a4d88c4e

Files changed

styles/dark/profile-header.mcsschanged
styles/dark/profile-preview.mcsschanged
styles/light/profile-header.mcsschanged
styles/light/profile-preview.mcsschanged
styles/dark/profile-header.mcssView
@@ -16,8 +16,9 @@
1616 }
1717
1818 div.main {
1919 flex: 1
20+ min-width: 0
2021 div.title {
2122 display: flex
2223 h1 {
2324 flex: 1
@@ -31,8 +32,10 @@
3132 -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
3233 }
3334 -publicKey {
3435 pre {
36+ text-overflow: ellipsis;
37+ overflow: hidden;
3538 color: #808080;
3639 margin: 2px 0;
3740 font-size: 120%;
3841 background: #333333;
styles/dark/profile-preview.mcssView
@@ -47,8 +47,9 @@
4747 }
4848 }
4949
5050 div.main {
51+ min-width: 0
5152 flex: 1
5253 margin: 5px
5354
5455 div.title {
@@ -69,8 +70,10 @@
6970 }
7071 }
7172 section {
7273 pre {
74+ text-overflow: ellipsis;
75+ overflow: hidden;
7376 color: #b3b3b3;
7477 margin: 2px 0;
7578 font-size: 110%;
7679 -webkit-user-select: text
styles/light/profile-header.mcssView
@@ -16,8 +16,9 @@
1616 }
1717 }
1818
1919 div.main {
20+ min-width: 0
2021 flex: 1
2122 div.title {
2223 display: flex
2324 h1 {
@@ -38,8 +39,10 @@
3839 -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
3940 }
4041 -publicKey {
4142 pre {
43+ text-overflow: ellipsis;
44+ overflow: hidden;
4245 color: #b3b3b3;
4346 margin: 2px 0;
4447 font-size: 120%;
4548 background: #ffffff;
styles/light/profile-preview.mcssView
@@ -40,8 +40,9 @@
4040 }
4141 }
4242
4343 div.main {
44+ min-width: 0
4445 flex: 1
4546 margin: 5px
4647
4748 div.title {
@@ -62,8 +63,10 @@
6263 }
6364 }
6465 section {
6566 pre {
67+ text-overflow: ellipsis;
68+ overflow: hidden;
6669 color: #b3b3b3;
6770 margin: 2px 0;
6871 font-size: 110%;
6972 background: #ffffff;

Built with git-ssb-web