Move ft-list-channel specific css to ft-list-channel.scss #4873
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.
Move ft-list-channel specific css to ft-list-channel.scss
Pull Request Type
Description
This pull request move CSS that is only used by the
ft-list-channel
component into theft-list-channel.scss
file from the_ft-list-item.scss
file. Not only does this make it easier to find when someone looks for it in the future, it also reduces the CSS output (renderer.[hash].css
) by2777
bytes.Why does the output shrink just by copying it from one file to another?
SCSS'
@use
directive copies the referenced CSS into the file that has the@use
directive, that means it is copied into 5 files/componentsft-list-video
,ft-list-channel
,ft-list-playlist
,ft-list-hashtag
andft-community-post
. That copying is good, because it means we have consistent styling across our list components and Vue can correctly scope the CSS to the component. In this case however, it's CSS that is only used in one of those five components, so it doesn't make sense to copy it into the other four.Testing
Search for a channel (e.g. MrBeast) and check that it appears correct in the search results.
Desktop