Skip to content

Commit

Permalink
added table feature
Browse files Browse the repository at this point in the history
  • Loading branch information
RheuX committed Dec 13, 2024
1 parent 7cfcb3a commit 210ebc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/shared/forms/planet-tag-selected-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export class PlanetTagSelectedInputComponent implements OnChanges {
}

get truncatedTooltip(): string {
const maxLength = this.deviceType === this.deviceTypes.DESKTOP ? 50 : 20;
const maxLength = this.deviceType === this.deviceTypes.DESKTOP ? 50 :
this.deviceType === this.deviceTypes.TABLET ? 35 : 20;
return this.tooltipLabels.length > maxLength
? this.tooltipLabels.slice(0, maxLength) + '...'
: this.tooltipLabels;
Expand Down

0 comments on commit 210ebc9

Please sign in to comment.