Skip to content

Commit

Permalink
💄 #13248
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Nov 28, 2024
1 parent 4e33419 commit cc6a92e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
18 changes: 14 additions & 4 deletions app/src/assets/scss/business/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
flex-wrap: wrap;

&:not(.custom-attr__avvalue--readonly):hover {
background-color: var(--b3-theme-background);
background-color: var(--b3-theme-surface-light);
}

&--readonly {
Expand Down Expand Up @@ -44,14 +44,20 @@
.block__logo:not(.popover__block) {
width: 160px;
color: var(--b3-theme-on-surface);
border-radius: var(--b3-border-radius);
transition: var(--b3-background-transition);
min-height: 34px;
align-self: flex-start;
margin-top: 5px;

span {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}

&:hover {
background-color: var(--b3-theme-surface-light);
}
}

.block__icons {
Expand Down Expand Up @@ -84,16 +90,20 @@
height: 16px;
margin-right: 8px;
}

&:hover {
background-color: var(--b3-theme-surface-light);
}
}

.b3-text-field--text {
transition: var(--b3-transition);
transition: var(--b3-background-transition);
min-height: 34px;
background-color: transparent;
padding: 7px 8px;

&:hover {
background-color: var(--b3-theme-background);
background-color: var(--b3-theme-surface-light);
}
}

Expand Down
3 changes: 2 additions & 1 deletion app/src/menus/commonMenuItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
});
const dialog = new Dialog({
width: isMobile() ? "92vw" : "50vw",
containerClassName: "b3-dialog__container--theme",
height: "80vh",
content: `<div class="fn__flex-column">
<div class="layout-tab-bar fn__flex" style="flex-shrink:0;border-radius: var(--b3-border-radius-b) var(--b3-border-radius-b) 0 0">
Expand Down Expand Up @@ -234,7 +235,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
<div data-type="custom" class="fn__none custom-attr">
${customHTML}
<div class="b3-label">
<button data-action="addCustom" class="b3-button b3-button--outline">
<button data-action="addCustom" class="b3-button b3-button--cancel">
<svg><use xlink:href="#iconAdd"></use></svg>${window.siyuan.languages.addAttr}
</button>
</div>
Expand Down

0 comments on commit cc6a92e

Please sign in to comment.