Skip to content

Commit

Permalink
fix: Fix some UI bugs discovered [Issue#518] (#524)
Browse files Browse the repository at this point in the history
* Fix some UI bugs discovered

* Revert lockfile changes
  • Loading branch information
StephixOne authored Sep 9, 2024
1 parent c1c959e commit 14dc2e6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/renderer/FlavourSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const FlavourSettings: React.FC<IProps> = (props: IProps) => {
</div>
</div>
{config.recordRetail && (
<div className="flex flex-col w-1/4 min-w-60 max-w-80">
<div className="flex flex-col w-1/4 min-w-60 max-w-120">
<Label htmlFor="retailLogPath" className="flex items-center">
Retail Log Path
<Tooltip
Expand Down Expand Up @@ -201,7 +201,7 @@ const FlavourSettings: React.FC<IProps> = (props: IProps) => {
</div>
</div>
{config.recordClassic && (
<div className="flex flex-col w-1/4 min-w-60 max-w-80">
<div className="flex flex-col w-1/4 min-w-60 max-w-120">
<Label htmlFor="classicLogPath" className="flex items-center">
Classic Log Path
<Tooltip
Expand Down Expand Up @@ -276,7 +276,7 @@ const FlavourSettings: React.FC<IProps> = (props: IProps) => {
</div>
</div>
{config.recordEra && (
<div className="flex flex-col w-1/4 min-w-60 max-w-80">
<div className="flex flex-col w-1/4 min-w-60 max-w-120">
<Label htmlFor="eraLogPath" className="flex items-center">
Classic Era Log Path
<Tooltip content={configSchema.eraLogPath.description} side="top">
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/RaidEncounterInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const RaidEncounterInfo: React.FC<IProps> = (props: IProps) => {

const renderEncounterText = () => {
return (
<span className="text-white font-sans font-semibold text-base text-shadow-instance">
<span className="text-white font-sans font-semibold text-base text-shadow-instance text-center">
{encounterName}
</span>
);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/Menu/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type MenuBadgeProps = {
const MenuBadge = ({ value }: MenuBadgeProps) => {
return value ? (
<Badge variant="default" className="ml-auto">
{value <= 99 ? value : '99+'}
{value <= 999 ? value : '999+'}
</Badge>
) : null;
};
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/MultiSelect/MultiSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export const MultiSelect = React.forwardRef<
const [selectedValues, setSelectedValues] =
React.useState<string[]>(defaultValue);
const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);
const [isAnimating] = React.useState(false);

React.useEffect(() => {
setSelectedValues(defaultValue);
Expand Down Expand Up @@ -164,6 +163,7 @@ export const MultiSelect = React.forwardRef<
className="w-[var(--radix-popper-anchor-width)] p-0"
align="start"
onEscapeKeyDown={() => setIsPopoverOpen(false)}
side="right"
>
<Command>
<CommandList>
Expand Down

0 comments on commit 14dc2e6

Please sign in to comment.