Conversation
robonyong
reviewed
Apr 23, 2024
Author
|
Hey, sorry! This was just a local error — my apologies!
On Apr 23, 2024, at 5:00 PM, Robin ***@***.***> wrote:
@robonyong commented on this pull request.
________________________________
In src/Character/index.tsx<#41 (comment)>:
@@ -2,14 +2,14 @@ import React, { useEffect, useState } from 'react';
import Panel, { FlipPanel } from '../Panel';
import defaultSound from '../assets/flip.mp3';
-// @ts-expect-error the minified file is not in the type declarations
-import { Howl } from 'howler/dist/howler.min.js';
Is this just a local conflict or are you also proposing to remove the sound playback feature?
—
Reply to this email directly, view it on GitHub<#41 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXDU7BMVXHM22NNKG6OPRE3Y63DVPAVCNFSM6AAAAABGU7YXGOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAMJYGI4TCNZWGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
robonyong
reviewed
Apr 25, 2024
Owner
robonyong
left a comment
There was a problem hiding this comment.
Overall looks good, I have some concerns/preferences that I'd like addressed before pulling this in
| padding: 0.5em; | ||
| position: relative; | ||
| border-radius: var(--border-radius); | ||
| margin-right: var(--margin); |
Owner
There was a problem hiding this comment.
As it is I think this overlaps in function a bit with border-width. I understand why you'd want to break the character spacing away from border-width, so two requests:
- consider renaming this prop to something more descriptive like
characterSpacing, css variable name--character-spacing - Implement this on the wrapper level instead (https://github.com/robonyong/react-split-flap-display/blob/master/src/SplitFlapDisplay/styles.module.scss#L13) and replace the border-left with margin-left and your css variable
| --color: #ddd; | ||
| --font-family: Arial, sans-serif; // Variable for font family | ||
| --font-size: 1rem; | ||
| --padding: 10px; |
Owner
There was a problem hiding this comment.
I think this type of overall padding is best left to the parent container of this component, and not imposed by the library. please 🔪
| color: var(--color); | ||
| font-size: var(--font-size); | ||
| font-family: var(--font-family); // Apply font family | ||
| padding: var(--padding); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates: