From 26dd231101db364dc9fba983e9d971a7347348fa Mon Sep 17 00:00:00 2001 From: sadakchap Date: Tue, 12 Oct 2021 23:36:51 +0530 Subject: [PATCH 1/2] fix: make icon visible on small width Pill --- src/components/Pill/Pill.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Pill/Pill.scss b/src/components/Pill/Pill.scss index 95987e52a6..4fdf770ffa 100644 --- a/src/components/Pill/Pill.scss +++ b/src/components/Pill/Pill.scss @@ -9,9 +9,8 @@ .pill { @include MonospaceFont; - display: flex; - justify-content: space-between; - align-items: center; + position: relative; + display: inline-block; color: #0E69A1; height: 20px; line-height: 20px; @@ -22,6 +21,8 @@ text-overflow: ellipsis; white-space: nowrap; & a { + position: absolute; + right: 0; height: 20px; width: 20px; background: #d6e5f2; From 3511be94289e1e25793d6e860cf065699d996101 Mon Sep 17 00:00:00 2001 From: sadakchap Date: Tue, 12 Oct 2021 23:39:17 +0530 Subject: [PATCH 2/2] fix: show text ellipse for shrinkable pill --- src/components/BrowserCell/BrowserCell.react.js | 8 ++++---- src/components/Pill/Pill.react.js | 4 ++-- src/components/Pill/Pill.scss | 8 ++++++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/components/BrowserCell/BrowserCell.react.js b/src/components/BrowserCell/BrowserCell.react.js index 8414e8f13d..755bab6213 100644 --- a/src/components/BrowserCell/BrowserCell.react.js +++ b/src/components/BrowserCell/BrowserCell.react.js @@ -85,7 +85,7 @@ export default class BrowserCell extends Component { } content = this.props.onPointerClick ? ( - + ) : ( dataValue ); @@ -102,7 +102,7 @@ export default class BrowserCell extends Component { const object = new Parse.Object(v.className); object.id = v.objectId; array.push( - + ); }); this.copyableValue = content =