Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#5090 the favorites icon overlaps unsplit nucleotide names in the rna and favorites tab #5129

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`Test Rna Preset Group component should render 1`] = `
class="css-1yj2br2"
>
<div
class="css-xhoies"
class="css-1nulf5p"
data-rna-preset-item-name="U"
data-testid="U_U_R_P"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Monomer Group should apply correct style if selected 1`] = `
<div
class="css-9xm0yj"
class="css-ehm7r7"
data-monomer-item-id="RRMonomerName___RRName"
data-testid="RRMonomerName___RRName"
>
Expand Down Expand Up @@ -34,7 +34,7 @@ Object {
class="css-1yj2br2"
>
<div
class="css-13ejbjh"
class="css-oypk73"
data-monomer-item-id="RRMonomerName___RRName"
data-testid="RRMonomerName___RRName"
>
Expand All @@ -48,7 +48,7 @@ Object {
</div>
</div>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="mAMonomerName___mAName"
data-testid="mAMonomerName___mAName"
>
Expand All @@ -62,7 +62,7 @@ Object {
</div>
</div>
<div
class="css-1wt06uo"
class="css-cnzlx6"
data-monomer-item-id="dDMonomerName___dDName"
data-testid="dDMonomerName___dDName"
>
Expand All @@ -76,7 +76,7 @@ Object {
</div>
</div>
<div
class="css-13ejbjh"
class="css-oypk73"
data-monomer-item-id="arRMonomerName___arRName"
data-testid="arRMonomerName___arRName"
>
Expand All @@ -90,7 +90,7 @@ Object {
</div>
</div>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="LdLMonomerName___LdLRName"
data-testid="LdLMonomerName___LdLRName"
>
Expand Down Expand Up @@ -120,7 +120,7 @@ Object {
class="css-1yj2br2"
>
<div
class="css-13ejbjh"
class="css-oypk73"
data-monomer-item-id="RRMonomerName___RRName"
data-testid="RRMonomerName___RRName"
>
Expand All @@ -134,7 +134,7 @@ Object {
</div>
</div>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="mAMonomerName___mAName"
data-testid="mAMonomerName___mAName"
>
Expand All @@ -148,7 +148,7 @@ Object {
</div>
</div>
<div
class="css-1wt06uo"
class="css-cnzlx6"
data-monomer-item-id="dDMonomerName___dDName"
data-testid="dDMonomerName___dDName"
>
Expand All @@ -162,7 +162,7 @@ Object {
</div>
</div>
<div
class="css-13ejbjh"
class="css-oypk73"
data-monomer-item-id="arRMonomerName___arRName"
data-testid="arRMonomerName___arRName"
>
Expand All @@ -176,7 +176,7 @@ Object {
</div>
</div>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="LdLMonomerName___LdLRName"
data-testid="LdLMonomerName___LdLRName"
>
Expand Down Expand Up @@ -258,7 +258,7 @@ Object {
class="css-1yj2br2"
>
<div
class="css-13ejbjh"
class="css-oypk73"
data-monomer-item-id="RRMonomerName___RRName"
data-testid="RRMonomerName___RRName"
>
Expand All @@ -272,7 +272,7 @@ Object {
</div>
</div>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="mAMonomerName___mAName"
data-testid="mAMonomerName___mAName"
>
Expand All @@ -286,7 +286,7 @@ Object {
</div>
</div>
<div
class="css-1wt06uo"
class="css-cnzlx6"
data-monomer-item-id="dDMonomerName___dDName"
data-testid="dDMonomerName___dDName"
>
Expand All @@ -300,7 +300,7 @@ Object {
</div>
</div>
<div
class="css-13ejbjh"
class="css-oypk73"
data-monomer-item-id="arRMonomerName___arRName"
data-testid="arRMonomerName___arRName"
>
Expand All @@ -314,7 +314,7 @@ Object {
</div>
</div>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="LdLMonomerName___LdLRName"
data-testid="LdLMonomerName___LdLRName"
>
Expand All @@ -339,7 +339,7 @@ Object {
class="css-1yj2br2"
>
<div
class="css-13ejbjh"
class="css-oypk73"
data-monomer-item-id="RRMonomerName___RRName"
data-testid="RRMonomerName___RRName"
>
Expand All @@ -353,7 +353,7 @@ Object {
</div>
</div>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="mAMonomerName___mAName"
data-testid="mAMonomerName___mAName"
>
Expand All @@ -367,7 +367,7 @@ Object {
</div>
</div>
<div
class="css-1wt06uo"
class="css-cnzlx6"
data-monomer-item-id="dDMonomerName___dDName"
data-testid="dDMonomerName___dDName"
>
Expand All @@ -381,7 +381,7 @@ Object {
</div>
</div>
<div
class="css-13ejbjh"
class="css-oypk73"
data-monomer-item-id="arRMonomerName___arRName"
data-testid="arRMonomerName___arRName"
>
Expand All @@ -395,7 +395,7 @@ Object {
</div>
</div>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="LdLMonomerName___LdLRName"
data-testid="LdLMonomerName___LdLRName"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ export const Card = styled.div<{
cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};
opacity: ${({ disabled }) => (disabled ? '0.4' : '1')};
display: flex;
justify-content: center;
justify-content: space-between;
align-items: center;
padding: 0 5px;
font-size: ${({ theme }) => theme.ketcher.font.size.small};
color: ${({ theme }) => theme.ketcher.color.text.primary};
position: relative;
Expand Down Expand Up @@ -77,18 +78,20 @@ export const Card = styled.div<{
position: absolute;
bottom: ${({ selected }) => (selected ? '4px' : '6px')};
left: ${({ selected }) => (selected ? '4px' : '6px')};
text-overflow: ellipsis;
max-width: calc(100% - 12px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 85%;
}
> .star {
color: #e1e5ea;
position: absolute;
top: 12px;
right: 4px;
right: 3px;
font-size: 15px;
opacity: 0;
transition: 0.2s ease;
flex-shrink: 0;
&.visible {
visibility: visible;
opacity: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Object {
class="css-1yj2br2"
>
<div
class="css-l69gvp"
class="css-1xf91or"
data-monomer-item-id="Phe4SD___(2S)-2-amino-3-{4-[(4S)-2,6-dioxo-1,3-diazinane-4-amido]phenyl}propanoic acid"
data-testid="Phe4SD___(2S)-2-amino-3-{4-[(4S)-2,6-dioxo-1,3-diazinane-4-amido]phenyl}propanoic acid"
>
Expand Down Expand Up @@ -44,7 +44,7 @@ Object {
class="css-1yj2br2"
>
<div
class="css-l69gvp"
class="css-1xf91or"
data-monomer-item-id="Phe4SD___(2S)-2-amino-3-{4-[(4S)-2,6-dioxo-1,3-diazinane-4-amido]phenyl}propanoic acid"
data-testid="Phe4SD___(2S)-2-amino-3-{4-[(4S)-2,6-dioxo-1,3-diazinane-4-amido]phenyl}propanoic acid"
>
Expand Down Expand Up @@ -130,7 +130,7 @@ Object {
class="css-1yj2br2"
>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="PEG2___Diethylene Glycol"
data-testid="PEG2___Diethylene Glycol"
>
Expand Down Expand Up @@ -159,7 +159,7 @@ Object {
class="css-1yj2br2"
>
<div
class="css-146eslx"
class="css-qogw85"
data-monomer-item-id="PEG2___Diethylene Glycol"
data-testid="PEG2___Diethylene Glycol"
>
Expand Down
Loading