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)
- iOS上NavigationBar超过三个item闪黑框 HOT 2
- 删除html中的font-size HOT 1
- which license ? HOT 1
- 涟漪动画效果跟进 HOT 5
- 建议添加超链接组件 HOT 6
- Add focus ring for focusable elements for better accessibility and consistancy HOT 1
- Styling and Localization Issues When Changing HTML lang Attribute HOT 5
- `mdui-select` should have label CSS Part HOT 1
- 图标调用方式建议 HOT 1
- 功能请求:Navigation Drawer Item
- Icons are not visible in available components HOT 1
- outlined text field 的文本背景颜色错误
- mdui.$功能缺失 HOT 1
- 多行 TextField 高度自动填充 HOT 3
- dialog的description出现英文会出现滚动条 HOT 1
- 求助主题模式的实现
- v2 版本 mdui-select 组件中 mdui-menu-item 过多时没有滚动条 HOT 2
- 在 Vue 3 上使用 MDUI 1.0.2 HOT 5
- 建议提供Vue(Volar)的d.ts文件 HOT 1
- 组件的icon属性可能使用@mdui/icons吗 HOT 2
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.