]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix long domain block descriptions breaking table layout
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 1 Oct 2019 02:54:29 +0000 (04:54 +0200)
committerThibaut Girka <thib@sitedethib.com>
Thu, 3 Oct 2019 11:20:13 +0000 (13:20 +0200)
Port SCSS changes from c35376132b6675c21c2c85dd2456cf0779e89ad9 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/styles/about.scss

index 7c129674d1bec11dd7a28799cf28108b30d1f4e6..a38ca99b4e4aed07142097a9e3457e8e857e58af 100644 (file)
@@ -145,8 +145,6 @@ $small-breakpoint: 960px;
 
     thead tr,
     tbody tr {
-      break-after: auto;
-      break-inside: avoid;
       border-bottom: 1px solid lighten($ui-base-color, 4%);
       font-size: 1em;
       line-height: 1.625;
@@ -167,12 +165,25 @@ $small-breakpoint: 960px;
       padding: 8px;
       align-self: start;
       align-items: start;
+      word-break: break-all;
 
       &.nowrap {
-        white-space: nowrap;
-        overflow: hidden;
-        text-overflow: ellipsis;
         width: 25%;
+        position: relative;
+
+        &::before {
+          content: '&nbsp;';
+          visibility: hidden;
+        }
+
+        span {
+          position: absolute;
+          left: 8px;
+          right: 8px;
+          white-space: nowrap;
+          overflow: hidden;
+          text-overflow: ellipsis;
+        }
       }
     }
   }