Comments (4)
没有宽度的话怎么确保 .mdui-panel-item-summary 的内容能垂直对齐?
from mdui.
在.mdui-panel-item-title
或.mdui-panel-item-summary
只有一兩個字內容的狀況下,我想要讓 summary 緊接著 title 放置,只隔著 16px 的 padding,畢竟panel 對我來說不像 table 在對齊上有這麼強烈的要求。但是目前寬度被指定了,所以無法達成。規範裡沒有指定寬度,如果照規範的話是可以的。
至於垂直對齊,同樣沒有在規範裡。雖然說規範裡面沒有明說,但是從圖裡看似有一個寬度的控制。
這寬度對齊問題如果可以用.mdui-col-*
之類的類別來解決應該滿適合的,就是沒試過在.mdui-panel-item-header
裡能不能放.mdui-col-*
,估計會有衝突,一般都是*-col
的元素包含組件,而不是組件包含*-col
元素。
from mdui.
我更新了 panel 的样式,现在只限定了.mdui-panel-item-title
的宽度,.mdui-panel-item-summary
的宽度会自适应。
我还是觉得垂直对齐会适合大多数的场景,规范给出的例子中也都是对齐的。
你可以自己添加 CSS 来取消宽度限制:
.mdui-panel-item-title {
width: auto;
min-width: 0;
}
from mdui.
的確我是打算覆蓋寬度的設定。多謝你的建議!
from mdui.
Related Issues (20)
- customElements.json links to wrong files (.ts instead of .js) HOT 1
- 文档是用啥开发的啊? HOT 1
- Unable to add label next to switch
- TextField (outlined variant) grows by 4px when active HOT 1
- mdui-tabs warning each time a tab is clicked. HOT 2
- Vue3 动态渲染Select组件时无法正确显示当前选择
- Elements using textContent don't trim whitesapce HOT 1
- 顶部应用栏(topappbar)和滚动条的布局问题 HOT 4
- Incorrect Evaluation of hasValue Attribute with 0 in Text Field HOT 1
- Add ability to customize the margin for tooltips HOT 2
- mdui-text-area emits "input" event twice
- Suggestion (docs): Sort components alphabetically HOT 1
- Slider component buggy when "min" property is specified on SvelteKit dev server. HOT 2
- Remove predefined attribute values from components
- Textfield multi-line scrollbar looking weird
- 似乎没有办法修改使用了 mdui-icon 的组件的字体 HOT 3
- observeResize.js在路由后报错(vue3) HOT 1
- mdui-text-field number type covers text with label if value is not number
- TopAppBar组件的自动padding-top的页面错位问题 HOT 5
- TopAppBar not adding padding-top on body HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdui.