Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(styles-spacing): 增大物料设置内外边距时点击区域 #134 #184

Merged
merged 15 commits into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions packages/settings/styles/src/components/spacing/SpacingGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<g>
<g>
<path
cursor="n-resize"
mode="delta"
fill="currentColor"
d="
Expand All @@ -18,14 +17,13 @@
data-automation-id="margin-top-button"
aria-label="Margin top button"
class="tb-path-color"
style="cursor: n-resize"
@click="clickMargin(SPACING_PROPERTY.MarginTop, $event)"
></path>
</g>
</g>
<g>
<g>
<path
cursor="e-resize"
mode="delta"
fill="currentColor"
d="
Expand All @@ -38,14 +36,13 @@
data-automation-id="margin-right-button"
aria-label="Margin right button"
class="lr-path-color"
style="cursor: e-resize"
@click="clickMargin(SPACING_PROPERTY.MarginRight, $event)"
></path>
</g>
</g>
<g>
<g>
<path
cursor="s-resize"
mode="delta"
fill="currentColor"
d="
Expand All @@ -58,14 +55,13 @@
data-automation-id="margin-bottom-button"
aria-label="Margin bottom button"
class="tb-path-color"
style="cursor: s-resize"
@click="clickMargin(SPACING_PROPERTY.MarginBottom, $event)"
></path>
</g>
</g>
<g>
<g>
<path
cursor="w-resize"
mode="delta"
fill="currentColor"
d="
Expand All @@ -78,7 +74,7 @@
data-automation-id="margin-left-button"
aria-label="Margin left button"
class="lr-path-color"
style="cursor: w-resize"
@click="clickMargin(SPACING_PROPERTY.MarginLeft, $event)"
></path>
</g>
</g>
Expand Down Expand Up @@ -189,7 +185,6 @@
<g>
<g>
<path
cursor="s-resize"
mode="delta"
fill="currentColor"
d="
Expand All @@ -202,14 +197,13 @@
data-automation-id="padding-top-button"
aria-label="Padding top button"
class="tb-path-color"
style="cursor: s-resize"
@click="clickPadding(SPACING_PROPERTY.PaddingTop, $event)"
></path>
</g>
</g>
<g>
<g>
<path
cursor="w-resize"
mode="delta"
fill="currentColor"
d="
Expand All @@ -222,14 +216,13 @@
data-automation-id="padding-right-button"
aria-label="Padding right button"
class="lr-path-color"
style="cursor: w-resize"
@click="clickPadding(SPACING_PROPERTY.PaddingRight, $event)"
></path>
</g>
</g>
<g>
<g>
<path
cursor="n-resize"
mode="delta"
fill="currentColor"
d="
Expand All @@ -242,14 +235,13 @@
data-automation-id="padding-bottom-button"
aria-label="Padding bottom button"
class="tb-path-color"
style="cursor: n-resize"
@click="clickPadding(SPACING_PROPERTY.PaddingBottom, $event)"
></path>
</g>
</g>
<g>
<g>
<path
cursor="e-resize"
mode="delta"
fill="currentColor"
d="
Expand All @@ -262,7 +254,7 @@
data-automation-id="padding-left-button"
aria-label="Padding left button"
class="lr-path-color"
style="cursor: e-resize"
@click="clickPadding(SPACING_PROPERTY.PaddingLeft, $event)"
></path>
</g>
</g>
Expand Down Expand Up @@ -537,7 +529,7 @@ export default {
}

.spacing-edit {
cursor: default;
cursor: pointer;
user-select: none;
overflow: hidden;
text-overflow: ellipsis;
Expand Down Expand Up @@ -600,13 +592,15 @@ export default {
}

.lr-path-color {
cursor: pointer;
color: var(--ti-lowcode-spacing-lr-color);
&:hover {
color: var(--ti-lowcode-spacing-lr-hover-color);
}
}

.tb-path-color {
cursor: pointer;
color: var(--ti-lowcode-spacing-tb-color);
&:hover {
color: var(--ti-lowcode-spacing-tb-hover-color);
Expand Down
Loading