Skip to content

Commit

Permalink
Limit contest entry name display length
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Feb 14, 2025
1 parent b9c4a62 commit 0138179
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
17 changes: 11 additions & 6 deletions resources/css/bem/contest-art-entry.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
.contest-art-entry {
@_top: contest-art-entry;

margin: 10px;
transform: translateZ(0);
--thumbnail-border-colour: transparent;
--thumbnail-height-multiplier: 1;
--thumbnail-scale: 1;
Expand All @@ -14,6 +12,12 @@
--trophy-colour: chocolate;
--vote-link-banner-bg: hsl(var(--hsl-b2));
--vote-link-banner-scale: 1;
margin: 10px;
transform: translateZ(0);
width: calc(
var(--thumbnail-size) * var(--thumbnail-scale) *
var(--thumbnail-width-multiplier)
);

&--placed-1 {
--thumbnail-scale: 1;
Expand Down Expand Up @@ -71,6 +75,10 @@
text-align: center;
}

&__result-name {
display: block;
}

&__result-place {
padding-right: 5px;

Expand All @@ -92,10 +100,7 @@
}

&__thumbnail {
width: calc(
var(--thumbnail-size) * var(--thumbnail-scale) *
var(--thumbnail-width-multiplier)
);
width: 100%;
height: calc(
var(--thumbnail-size) * var(--thumbnail-scale) *
var(--thumbnail-height-multiplier)
Expand Down
1 change: 1 addition & 0 deletions resources/js/contest-voting/art-entry.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export class ArtEntry extends React.Component
div className: "#{bn}__result",
if showName
a
className: "#{bn}__result-name u-ellipsis-overflow"
href: @props.entry.preview
rel: 'nofollow noreferrer'
target: '_blank'
Expand Down

0 comments on commit 0138179

Please sign in to comment.