Skip to content

Commit

Permalink
feat(css_formatter): ValueListLayout::SingleLine
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Apr 3, 2024
1 parent f25499f commit 01c8549
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/biome_css_formatter/src/utils/component_value_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ where
ValueListLayout::Fill => {
write!(f, [group(&indent(&values))])
}
ValueListLayout::SingleLine => {
ValueListLayout::SingleValue => {
write!(f, [values])
}
// TODO: Add formatting for one-per-line once comma-separated lists are supported.
Expand All @@ -33,7 +33,7 @@ where

#[derive(Copy, Clone, Debug)]
pub(crate) enum ValueListLayout {
/// Places all values on a single line.
/// Ensures the usage of a singular, consistent value.
///
/// ```css
/// :root {
Expand All @@ -48,7 +48,7 @@ pub(crate) enum ValueListLayout {
/// );
/// }
/// ```
SingleLine,
SingleValue,

/// Tries to fit as many values on a single line as possible, then wraps
/// and indents the next line to keep filling on that line, and so on.
Expand Down Expand Up @@ -86,7 +86,7 @@ where
{
// TODO: Check for comments, check for the types of elements in the list, etc.
if list.len() == 1 {
ValueListLayout::SingleLine
ValueListLayout::SingleValue
} else {
ValueListLayout::Fill
}
Expand Down

0 comments on commit 01c8549

Please sign in to comment.